Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

I find you lack of faith in the forth dithturbing. -- Darse ("Darth") Vader


devel / comp.lang.c / iso646.h

SubjectAuthor
* iso646.hLawrence D'Oliveiro
+- Re: iso646.hLew Pitcher
+* Re: iso646.hJames Kuyper
|`- Re: iso646.hLawrence D'Oliveiro
`* Re: iso646.hDavid Brown
 +* Re: iso646.hScott Lurndal
 |`* Re: iso646.hLawrence D'Oliveiro
 | `* Re: iso646.hKeith Thompson
 |  `* Re: iso646.hLawrence D'Oliveiro
 |   `* Re: iso646.hKeith Thompson
 |    `* Re: iso646.hLawrence D'Oliveiro
 |     `- Re: iso646.hKaz Kylheku
 `* Re: iso646.hLawrence D'Oliveiro
  +- Re: iso646.hKaz Kylheku
  +* Re: iso646.hBlue-Maned_Hawk
  |`* Re: iso646.hLawrence D'Oliveiro
  | +- Re: iso646.hKaz Kylheku
  | `* Re: iso646.hJanis Papanagnou
  |  `* Re: iso646.hLawrence D'Oliveiro
  |   +- Re: iso646.hJanis Papanagnou
  |   `- Re: iso646.hKaz Kylheku
  +- Re: iso646.hTim Rentsch
  +* Re: iso646.hJanis Papanagnou
  |`* Re: iso646.hLawrence D'Oliveiro
  | `- Re: iso646.hJanis Papanagnou
  +* Re: iso646.hDavid Brown
  |`* Re: iso646.hKaz Kylheku
  | +- Re: iso646.hbart
  | +* Re: iso646.hJanis Papanagnou
  | |+* Re: iso646.hKeith Thompson
  | ||`* Re: iso646.hLawrence D'Oliveiro
  | || +* Re: iso646.hKeith Thompson
  | || |`* Re: iso646.hDavid Brown
  | || | `- Re: iso646.hJanis Papanagnou
  | || +* Re: iso646.hLew Pitcher
  | || |`* Re: iso646.hLawrence D'Oliveiro
  | || | +- Re: iso646.hLew Pitcher
  | || | +* Re: iso646.hKaz Kylheku
  | || | |`- Re: iso646.hChris M. Thomasson
  | || | `- Re: iso646.hScott Lurndal
  | || `- Re: iso646.hKaz Kylheku
  | |`* Re: iso646.hKaz Kylheku
  | | +- Re: iso646.hJanis Papanagnou
  | | `* Re: iso646.hJanis Papanagnou
  | |  `- Re: iso646.hKaz Kylheku
  | `- Re: iso646.hDavid Brown
  +- Re: iso646.hbart
  `* Re: iso646.hMalcolm McLean
   +* Re: iso646.hLew Pitcher
   |+- Re: iso646.hKaz Kylheku
   |+* Re: iso646.hLawrence D'Oliveiro
   ||+* Re: iso646.hKeith Thompson
   |||`* Re: iso646.hLawrence D'Oliveiro
   ||| +* Re: iso646.hKeith Thompson
   ||| |+- Re: iso646.hLawrence D'Oliveiro
   ||| |`- Re: iso646.hMalcolm McLean
   ||| `- Re: iso646.hJanis Papanagnou
   ||`- Re: iso646.hJanis Papanagnou
   |`* C/CPP macro conventions (was Re: iso646.h)Janis Papanagnou
   | `* Re: C/CPP macro conventions (was Re: iso646.h)Kaz Kylheku
   |  +- Re: C/CPP macro conventions (was Re: iso646.h)Janis Papanagnou
   |  +- Re: C/CPP macro conventions (was Re: iso646.h)David Brown
   |  `- Re: C/CPP macro conventions (was Re: iso646.h)Blue-Maned_Hawk
   +* Re: iso646.hbart
   |+* Re: iso646.hScott Lurndal
   ||`* Re: iso646.hJames Kuyper
   || +* Re: iso646.hKalevi Kolttonen
   || |+* Re: iso646.hLawrence D'Oliveiro
   || ||`* Re: iso646.hKaz Kylheku
   || || +* Re: iso646.hKalevi Kolttonen
   || || |`* Re: iso646.hJanis Papanagnou
   || || | `* Re: iso646.hJames Kuyper
   || || |  +* Re: iso646.hJanis Papanagnou
   || || |  |+- Re: iso646.hJanis Papanagnou
   || || |  |+* Re: iso646.hKalevi Kolttonen
   || || |  ||`* Re: iso646.hKalevi Kolttonen
   || || |  || `* Re: iso646.hLawrence D'Oliveiro
   || || |  ||  `- Re: iso646.hDavid Brown
   || || |  |`* Re: iso646.hKeith Thompson
   || || |  | `- Re: iso646.hKalevi Kolttonen
   || || |  +- Re: iso646.hLawrence D'Oliveiro
   || || |  `* Re: iso646.hKaz Kylheku
   || || |   `* Re: iso646.hJames Kuyper
   || || |    +* Re: iso646.hDavid Brown
   || || |    |+* Re: iso646.hJanis Papanagnou
   || || |    ||`* Re: iso646.hDavid Brown
   || || |    || `- Re: iso646.hJanis Papanagnou
   || || |    |`* Re: iso646.hbart
   || || |    | `- Re: iso646.hDavid Brown
   || || |    `- Re: iso646.hTim Rentsch
   || || `- Re: iso646.hJanis Papanagnou
   || |`- Unix shell conditionals (was Re: iso646.h)Janis Papanagnou
   || `* Re: iso646.hScott Lurndal
   ||  +* Re: iso646.hKaz Kylheku
   ||  |`* Re: iso646.hbart
   ||  | `- Re: iso646.hKaz Kylheku
   ||  +- Re: iso646.hKeith Thompson
   ||  `* Re: iso646.hJames Kuyper
   ||   `- Re: iso646.hJanis Papanagnou
   |+* Python (Re: iso646.h)Kalevi Kolttonen
   ||+* Re: Python (Re: iso646.h)bart
   ||+* Re: Python (Re: iso646.h)Keith Thompson
   ||+* Re: Python (Re: iso646.h)Lawrence D'Oliveiro
   ||`- Re: Python (Re: iso646.h)Dan Cross
   |+* Re: iso646.hKeith Thompson
   |`* Re: iso646.hMalcolm McLean
   `* Re: iso646.hLawrence D'Oliveiro

Pages:1234567891011121314151617181920212223242526
iso646.h

<uokhnk$eiln$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=31363&group=comp.lang.c#31363

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: iso646.h
Date: Mon, 22 Jan 2024 01:51:48 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 5
Message-ID: <uokhnk$eiln$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 22 Jan 2024 01:51:48 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bfdaa5dc2469429165b2d062b928a109";
logging-data="477879"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19nL+G+G1UqZzPUbbbE/jt0"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:vczXrOIaKA/G6c6IXt6Bfa3fHK4=
 by: Lawrence D'Oliv - Mon, 22 Jan 2024 01:51 UTC

How many people know about this? It was introduced in c99. If you
“#include <iso646.h>”, then you can use alternative symbols like “not”
instead of “!”, “and” instead of “&&” and “or” instead of “||”.

C++ already had this, without the need to include such a file.

Re: iso646.h

<uoki7k$74o0$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=31364&group=comp.lang.c#31364

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lew.pitc...@digitalfreehold.ca (Lew Pitcher)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Mon, 22 Jan 2024 02:00:20 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <uoki7k$74o0$2@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 22 Jan 2024 02:00:20 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c724a183673da6ba824c85fb98ad8c0a";
logging-data="234240"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/y6/lQc2aQtT63kNcCxWopqfMMhzjq8hY="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:Qjq1AyXzBl5EdthLGkrsKYe1iyk=
 by: Lew Pitcher - Mon, 22 Jan 2024 02:00 UTC

On Mon, 22 Jan 2024 01:51:48 +0000, Lawrence D'Oliveiro wrote:

> How many people know about this? It was introduced in c99.

It was added in a 1995 amendment to the C90 standard.

> If you
> “#include <iso646.h>”, then you can use alternative symbols like “not”
> instead of “!”, “and” instead of “&&” and “or” instead of “||”.
>
> C++ already had this, without the need to include such a file.

Yah, so?

--
Lew Pitcher
"In Skills We Trust"

Re: iso646.h

<uokl24$et2j$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=31367&group=comp.lang.c#31367

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jameskuy...@alumni.caltech.edu (James Kuyper)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Sun, 21 Jan 2024 21:48:36 -0500
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <uokl24$et2j$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 22 Jan 2024 02:48:36 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="74d1c30c7548c2c7b2cee884ce9ac0bf";
logging-data="488531"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+05nC3leqKQTLB57hXQCBvv5LyXqC9P7w="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:RjhOPwiDPANl2si0UP5GsJ4V+58=
Content-Language: en-US
In-Reply-To: <uokhnk$eiln$1@dont-email.me>
 by: James Kuyper - Mon, 22 Jan 2024 02:48 UTC

On 1/21/24 20:51, Lawrence D'Oliveiro wrote:
> How many people know about this? It was introduced in c99. If you
> “#include <iso646.h>”, then you can use alternative symbols like “not”
> instead of “!”, “and” instead of “&&” and “or” instead of “||”.

I did, and so did a lot of other people. Google groups lists 222
messages containing <iso646.h>.

> C++ already had this, without the need to include such a file.

That's because backwards compatibility with older versions of C is a
lower priority for C++ than it is for C. Existing code that ysed those
words as identifiers would break if that feature were simply always
enabled. Putting it in a standard header allows it to be under user
control.

Re: iso646.h

<uoku4i$jsde$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=31371&group=comp.lang.c#31371

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!nntp.comgw.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Mon, 22 Jan 2024 05:23:30 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <uoku4i$jsde$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <uokl24$et2j$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 22 Jan 2024 05:23:30 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bfdaa5dc2469429165b2d062b928a109";
logging-data="651694"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Xt7zx0EsTA+JYoiDFJ8lF"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:BRuPQxc4MmG0cLvDCh4ZZx9Xtwo=
 by: Lawrence D'Oliv - Mon, 22 Jan 2024 05:23 UTC

On Sun, 21 Jan 2024 21:48:36 -0500, James Kuyper wrote:

> On 1/21/24 20:51, Lawrence D'Oliveiro wrote:
>
>> C++ already had this, without the need to include such a file.
>
> That's because backwards compatibility with older versions of C is a
> lower priority for C++ than it is for C.

I don’t think even many C++ programmers know about this.

Re: iso646.h

<uol92t$l82b$3@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=31376&group=comp.lang.c#31376

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Mon, 22 Jan 2024 09:30:21 +0100
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <uol92t$l82b$3@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 22 Jan 2024 08:30:21 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="773b575d0a21626e330ecd5dcb685706";
logging-data="696395"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/rJu1XyELtrxt4ZEVZ+iRsryrElNy4tt8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:2pBfpAgW4uhKl3p3ezqHuhFWh1g=
Content-Language: en-GB
In-Reply-To: <uokhnk$eiln$1@dont-email.me>
 by: David Brown - Mon, 22 Jan 2024 08:30 UTC

On 22/01/2024 02:51, Lawrence D'Oliveiro wrote:
> How many people know about this? It was introduced in c99. If you
> “#include <iso646.h>”, then you can use alternative symbols like “not”
> instead of “!”, “and” instead of “&&” and “or” instead of “||”.
>
> C++ already had this, without the need to include such a file.

I can't say how many people know about it, but I certainly did. I have
not used it - and I don't use the matching names in C++ either, but I
knew about them. (I know lots more features of C and C++ than I use - I
expect that applies to most programmers.)

Re: iso646.h

<8FwrN.323724$p%Mb.66745@fx15.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=31387&group=comp.lang.c#31387

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.neodome.net!news.mixmin.net!newsreader4.netcologne.de!news.netcologne.de!npeer.as286.net!npeer-ng0.as286.net!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx15.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: iso646.h
Newsgroups: comp.lang.c
References: <uokhnk$eiln$1@dont-email.me> <uol92t$l82b$3@dont-email.me>
Lines: 29
Message-ID: <8FwrN.323724$p%Mb.66745@fx15.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Mon, 22 Jan 2024 16:24:36 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Mon, 22 Jan 2024 16:24:36 GMT
X-Received-Bytes: 1335
 by: Scott Lurndal - Mon, 22 Jan 2024 16:24 UTC

David Brown <david.brown@hesbynett.no> writes:
>On 22/01/2024 02:51, Lawrence D'Oliveiro wrote:
>> How many people know about this? It was introduced in c99. If you

Although it was available before 1999 - the SVR4 C compilation System
(CCS) had an iso656.h header file in the early 90's.

#ifndef _ISO646_H
#define _ISO646_H
#ident "@(#)sgs-head:common/head/iso646.h 1.2"

#define and &&
#define and_eq &=
#define bitand &

#define or ||
#define or_eq |=
#define bitor |

#define xor ^
#define xor_eq ^=

#define compl ~

#define not !
#define not_eq !=

#endif /*_ISO646_H*/
~

Re: iso646.h

<uomjfr$sopf$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=31398&group=comp.lang.c#31398

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Mon, 22 Jan 2024 20:34:04 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 62
Message-ID: <uomjfr$sopf$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <uol92t$l82b$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 22 Jan 2024 20:34:04 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bfdaa5dc2469429165b2d062b928a109";
logging-data="942895"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ovK8iGbI5CzQKXrcHfdYb"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:m0RTcbXrOqaluH5PpmpiuTZRhI8=
 by: Lawrence D'Oliv - Mon, 22 Jan 2024 20:34 UTC

On Mon, 22 Jan 2024 09:30:21 +0100, David Brown wrote:

> ... I don't use the matching names in C++ either ...

I do, if/when I do use C++ and C. Don’t you think it improves readability:

if (ThisCh < '0' or ThisCh > '9')
{
if (AllowSign and Index == 0 and (ThisCh == '+' or ThisCh == '-'))
{
/* fine */
}
else if (AllowDecimal and not DecimalSeen and ThisCh == '.')
{
DecimalSeen = true; /* only allow one decimal point */
}
else
{
Valid = false;
break;
} /*if*/
} /*if*/

...

if
(
TheEntry->d_name[0] == '.'
and
(
TheEntry->d_name[1] == 0
or
TheEntry->d_name[1] == '.'
and
TheEntry->d_name[2] == 0
)
)
{
/* skip "." and ".." entries */
}

...

if
(
ThisCh >= 'a' and ThisCh <= 'z'
or
ThisCh >= 'A' and ThisCh <= 'Z'
or
ThisCh >= '0' and ThisCh <= '9'
or
ThisCh == '_'
or
ThisCh == '-'
or
ThisCh == '.'
or
ThisCh == '/'
)
{
Result.append(1, ThisCh);
}

Re: iso646.h

<uomjgs$sopf$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=31399&group=comp.lang.c#31399

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Mon, 22 Jan 2024 20:34:37 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 6
Message-ID: <uomjgs$sopf$2@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <uol92t$l82b$3@dont-email.me>
<8FwrN.323724$p%Mb.66745@fx15.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 22 Jan 2024 20:34:37 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bfdaa5dc2469429165b2d062b928a109";
logging-data="942895"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19oCsIGb+WK8tK1/EtS3mZi"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:UHEMDx5z0gm1A6XR+2u73ScS3f8=
 by: Lawrence D'Oliv - Mon, 22 Jan 2024 20:34 UTC

On Mon, 22 Jan 2024 16:24:36 GMT, Scott Lurndal wrote:

> Although it was available before 1999 - the SVR4 C compilation System
> (CCS) had an iso6[4]6.h header file in the early 90's.

By the way, why is it called “iso646.h”?

Re: iso646.h

<87plxt9i72.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=31401&group=comp.lang.c#31401

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Mon, 22 Jan 2024 13:22:41 -0800
Organization: None to speak of
Lines: 20
Message-ID: <87plxt9i72.fsf@nosuchdomain.example.com>
References: <uokhnk$eiln$1@dont-email.me> <uol92t$l82b$3@dont-email.me>
<8FwrN.323724$p%Mb.66745@fx15.iad> <uomjgs$sopf$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="9cd31264156fc70cf12828e27041ba36";
logging-data="960616"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/cR63RhtXNozBsDZ/JujKO"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:lxJFH3RTXQHpCwKpUko+Wi0IseA=
sha1:NamH2aczCVtJWlVAg9AqLXkiSP0=
 by: Keith Thompson - Mon, 22 Jan 2024 21:22 UTC

Lawrence D'Oliveiro <ldo@nz.invalid> writes:
> On Mon, 22 Jan 2024 16:24:36 GMT, Scott Lurndal wrote:
>> Although it was available before 1999 - the SVR4 C compilation System
>> (CCS) had an iso6[4]6.h header file in the early 90's.
>
> By the way, why is it called “iso646.h”?

ISO 646 is the ISO standard for the ASCII 7-bit character set. The
header's original intent was to make C programming easier on systems
that don't support all ASCII characters, either because they use EBCDIC
or because they use 7-bit character sets that replace some puncutation
characters with, for example, accented letters.

As for "and" being more readable than "&&", that's not necessarily the
case for people who are accustomed to reading C code.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Medtronic
void Void(void) { Void(); } /* The recursive call of the void */

Re: iso646.h

<20240122133029.551@kylheku.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=31402&group=comp.lang.c#31402

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 433-929-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Mon, 22 Jan 2024 21:32:41 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <20240122133029.551@kylheku.com>
References: <uokhnk$eiln$1@dont-email.me> <uol92t$l82b$3@dont-email.me>
<uomjfr$sopf$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 22 Jan 2024 21:32:41 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="019b7810e586565adbc643fa2cd39f06";
logging-data="962206"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18hI+pK6jy3FvBiXZ2TW2voMKnTHzwKJ58="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:SMwoWb86TGh/umuRSgdlsi5fdjA=
 by: Kaz Kylheku - Mon, 22 Jan 2024 21:32 UTC

On 2024-01-22, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
> On Mon, 22 Jan 2024 09:30:21 +0100, David Brown wrote:
>
>> ... I don't use the matching names in C++ either ...
>
> I do, if/when I do use C++ and C. Don’t you think it improves readability:

Only for someone who has no experience in C or C++, and is unfamiliar
with the regular operators, and speaks English.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca
NOTE: If you use Google Groups, I don't see you, unless you're whitelisted.

Re: iso646.h

<uomouf$tokp$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=31404&group=comp.lang.c#31404

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Mon, 22 Jan 2024 22:07:11 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <uomouf$tokp$2@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <uol92t$l82b$3@dont-email.me>
<8FwrN.323724$p%Mb.66745@fx15.iad> <uomjgs$sopf$2@dont-email.me>
<87plxt9i72.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 22 Jan 2024 22:07:11 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bfdaa5dc2469429165b2d062b928a109";
logging-data="975513"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/sVOqOA7nGoEsqVhvBqHwp"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:oOggCBVmp3xlz7Q+b2/QuU5Id74=
 by: Lawrence D'Oliv - Mon, 22 Jan 2024 22:07 UTC

On Mon, 22 Jan 2024 13:22:41 -0800, Keith Thompson wrote:

> As for "and" being more readable than "&&", that's not necessarily the
> case for people who are accustomed to reading C code.

You mean, “old-style C code”.

I imagine the introduction of ANSI-style argument declarations, as opposed
to the old K&R style, was a bit of a jar, too. But we got over it.

Re: iso646.h

<87le8h9du2.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=31414&group=comp.lang.c#31414

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Mon, 22 Jan 2024 14:56:53 -0800
Organization: None to speak of
Lines: 27
Message-ID: <87le8h9du2.fsf@nosuchdomain.example.com>
References: <uokhnk$eiln$1@dont-email.me> <uol92t$l82b$3@dont-email.me>
<8FwrN.323724$p%Mb.66745@fx15.iad> <uomjgs$sopf$2@dont-email.me>
<87plxt9i72.fsf@nosuchdomain.example.com>
<uomouf$tokp$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="9cd31264156fc70cf12828e27041ba36";
logging-data="987658"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19UgOUK7KZw6vtinwvJtf6g"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:ry/O4NELXqFuo2WzPDX4aIjw0TA=
sha1:ePQIXyTUruPwkSnt4VxNqOOqyQU=
 by: Keith Thompson - Mon, 22 Jan 2024 22:56 UTC

Lawrence D'Oliveiro <ldo@nz.invalid> writes:
> On Mon, 22 Jan 2024 13:22:41 -0800, Keith Thompson wrote:
>> As for "and" being more readable than "&&", that's not necessarily the
>> case for people who are accustomed to reading C code.
>
> You mean, “old-style C code”.

No, I mean C code.

> I imagine the introduction of ANSI-style argument declarations, as opposed
> to the old K&R style, was a bit of a jar, too. But we got over it.

As far as I can tell, the macros defined in <iso646.h> have never caught
on significantly. Code using the "and" and "or" macros isn't new-style;
it's just (likely to be seen as) peculiar.

I don't think I'd have any trouble reading code that uses the macros --
but the fact that I've never had a chance to find out is telling.

If you find them more readable, that's fine, but I think that most C
programmers with any reasonable amount of experience are more likely to
find them slightly jarring.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Medtronic
void Void(void) { Void(); } /* The recursive call of the void */

Re: iso646.h

<pan$9db66$eb4f51b7$5c95cec0$b076ca4d@invalid.invalid>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=31416&group=comp.lang.c#31416

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!bluemanedhawk.eternal-september.org!.POSTED!not-for-mail
From: bluemane...@invalid.invalid (Blue-Maned_Hawk)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Mon, 22 Jan 2024 23:08:53 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <pan$9db66$eb4f51b7$5c95cec0$b076ca4d@invalid.invalid>
References: <uokhnk$eiln$1@dont-email.me> <uol92t$l82b$3@dont-email.me>
<uomjfr$sopf$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 22 Jan 2024 23:08:53 -0000 (UTC)
Injection-Info: bluemanedhawk.eternal-september.org; posting-host="e80390565b479469cf127d80eac58218";
logging-data="986781"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+lUDbQyFuwP3gzdkch3wwsU934uRKU49k="
User-Agent: Pan/0.154 (Izium; 517acf4)
Cancel-Lock: sha1:CXFi0D2kAH6iNtHVHdWVfRdQvO4=
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACh0lEQVRYw71Z21bD
MAzzevbfkr4cHjrSXJyL044+MDa6WLEl2SkvkrZ1AbAvXO+bUGSCPYnsuIVGMpm
ZLnjX718GhAKNsp8lON2F9VrhELwIgJlBepkZjA78rVK+FkmNhEJK76UsJlz8+E
rJsjrpYouhLo/SC6qPHgakFOR8wV9+8rCfO/I/oVnmUZUp42/LW2XkLj9TCFNM9
jp5g2EmHZgpYZjCOkYU7sXVogRylJqpdggoFLG1g09Flah/7kErCxzR9HgXPYsq
0glb9cxjIz2Vsk9AmAoCSxECpD713joMKjQqLAtmMqJmXjdVvlMnMQCVITotJd1
z+fh1f1NNo+vuc1KnhWUmY7t03vydTud9BbXCtN3L2PL3bK7JCNG0GHzuZxafyB
fxevCxpm1vrwZltqw6SILCcdoCE6PGQC8wZWDA9Or7Qp5s3lAZezys0nDazs9S9
R0TjwEiksRxLkNPC1NMMWPs1bj0Ei0Yuo+JVtFLuzP1NRJ16qXWN8DhhtmS4PDg
O6mqRxs4bEJrYt087mSIow/1VzW2oFlMQuiuIy/KsUagvhdw6hSjJGlIavbLF8x
j3X47bccLcUSi0dkWh1nUZNhANT1tHKUXrNxNLbd9KPb9wDDVrKwmPQMOPQ1oy6
k5I1DwzDeRJd3jVIhDAUxq3ngzJG4CCkNXZxZVMcjefoK2J0gUY2S3rxz/RuTFx
2zHd9U+obimJXMG4edsk/2j5pTU5G1MmzbRLxkfq5EiT1GGsidvMGzi+1goGb2l
GCrN+nGnV8xj3q3JLRDVPL96vUc7Z4aJ3TN1mVqWAMJMfG+Jxh6TQqP+92iZkCU
xtglds1AB6r0aiSHKcnFck+p/c/0CbacFLQcajGcAAAAASUVORK5CYII=
X-Face: Llanfair­pwllgwyngyllÃ
ƒ‚Ã
ƒƒ‚­gogery­chwyrnÃ
ƒƒ
? ?‚­drobwll­llan
Ã
? ?ƒƒ‚­tysilio­go
g
o­goch
 by: Blue-Maned_Hawk - Mon, 22 Jan 2024 23:08 UTC

Lawrence D'Oliveiro wrote:

> Don’t you think it improves readability:

No.

--
Blue-Maned_Hawk│shortens to
Hawk│/
blu.mɛin.dÊ°ak/
│he/him/his/himself/Mr.
blue-maned_hawk.srht.site
Cenunfly!

Re: iso646.h

<uomu7t$uj61$3@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=31421&group=comp.lang.c#31421

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Mon, 22 Jan 2024 23:37:33 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <uomu7t$uj61$3@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <uol92t$l82b$3@dont-email.me>
<uomjfr$sopf$1@dont-email.me>
<pan$9db66$eb4f51b7$5c95cec0$b076ca4d@invalid.invalid>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 22 Jan 2024 23:37:33 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b483129fb1b43c5ca91b5930e33c4fdf";
logging-data="1002689"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/86J1YJu7HHZ/7xlfAVJmP"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:8NSENcv6eqVggKdMCJUyFuebXCY=
 by: Lawrence D'Oliv - Mon, 22 Jan 2024 23:37 UTC

On Mon, 22 Jan 2024 23:08:53 -0000 (UTC), Blue-Maned_Hawk wrote:

> Lawrence D'Oliveiro wrote:
>
>> Don’t you think it improves readability:
>
> No.

Lessig’s Law: The one who writes the code makes the rules.

Re: iso646.h

<uomuk1$ulde$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=31422&group=comp.lang.c#31422

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Mon, 22 Jan 2024 23:44:01 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <uomuk1$ulde$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <uol92t$l82b$3@dont-email.me>
<8FwrN.323724$p%Mb.66745@fx15.iad> <uomjgs$sopf$2@dont-email.me>
<87plxt9i72.fsf@nosuchdomain.example.com> <uomouf$tokp$2@dont-email.me>
<87le8h9du2.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 22 Jan 2024 23:44:01 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b483129fb1b43c5ca91b5930e33c4fdf";
logging-data="1004974"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+pF8R4KOtqDe9oHS5/l6+Y"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:zbVk64cIrWjDkekQxhrXpcAFyKc=
 by: Lawrence D'Oliv - Mon, 22 Jan 2024 23:44 UTC

On Mon, 22 Jan 2024 14:56:53 -0800, Keith Thompson wrote:

> As far as I can tell, the macros defined in <iso646.h> have never caught
> on significantly.

The nice thing is, I don’t have to care. They have to be part of any
standards-compliant C compiler, therefore I am free to use them. And I do.

Re: iso646.h

<20240122160855.168@kylheku.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=31424&group=comp.lang.c#31424

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 433-929-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Tue, 23 Jan 2024 00:10:20 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <20240122160855.168@kylheku.com>
References: <uokhnk$eiln$1@dont-email.me> <uol92t$l82b$3@dont-email.me>
<8FwrN.323724$p%Mb.66745@fx15.iad> <uomjgs$sopf$2@dont-email.me>
<87plxt9i72.fsf@nosuchdomain.example.com> <uomouf$tokp$2@dont-email.me>
<87le8h9du2.fsf@nosuchdomain.example.com> <uomuk1$ulde$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 23 Jan 2024 00:10:20 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="89a24c451ef1c6e54f4783ce54b57f43";
logging-data="1009138"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18o7E8QDFcTSckfptCs9TAu4pq7rhiwB4w="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:FdFA52SCsmmL0HOFZbxjxuP+GW4=
 by: Kaz Kylheku - Tue, 23 Jan 2024 00:10 UTC

On 2024-01-22, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
> On Mon, 22 Jan 2024 14:56:53 -0800, Keith Thompson wrote:
>
>> As far as I can tell, the macros defined in <iso646.h> have never caught
>> on significantly.
>
> The nice thing is, I don’t have to care. They have to be part of any
> standards-compliant C compiler, therefore I am free to use them. And I do.

Indentation not being required is part of any conforming C compiler.
Therefore, I take advantage of it by starting each line of code without
any leading whitespace, regardless of the nesting level. My coworkers
love me!

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca
NOTE: If you use Google Groups, I don't see you, unless you're whitelisted.

Re: iso646.h

<20240122161029.595@kylheku.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=31425&group=comp.lang.c#31425

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 433-929-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Tue, 23 Jan 2024 00:12:25 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <20240122161029.595@kylheku.com>
References: <uokhnk$eiln$1@dont-email.me> <uol92t$l82b$3@dont-email.me>
<uomjfr$sopf$1@dont-email.me>
<pan$9db66$eb4f51b7$5c95cec0$b076ca4d@invalid.invalid>
<uomu7t$uj61$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 23 Jan 2024 00:12:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="89a24c451ef1c6e54f4783ce54b57f43";
logging-data="1009138"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/xu8v/qDGLbnimY2lOAbm24A9wYwdmfuo="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:9/SXQ4CjFhzki49kfhFQIW2r0x4=
 by: Kaz Kylheku - Tue, 23 Jan 2024 00:12 UTC

On 2024-01-22, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
> On Mon, 22 Jan 2024 23:08:53 -0000 (UTC), Blue-Maned_Hawk wrote:
>
>> Lawrence D'Oliveiro wrote:
>>
>>> Don’t you think it improves readability:
>>
>> No.
>
> Lessig’s Law: The one who writes the code makes the rules.

Accordingly, if you get to rewrite the genetic code
of someone reading the code, you may be able to dictate
what they find readable.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca
NOTE: If you use Google Groups, I don't see you, unless you're whitelisted.

Re: iso646.h

<86cytsfzj4.fsf@linuxsc.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=31431&group=comp.lang.c#31431

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.swapon.de!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tr.17...@z991.linuxsc.com (Tim Rentsch)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Mon, 22 Jan 2024 20:23:59 -0800
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <86cytsfzj4.fsf@linuxsc.com>
References: <uokhnk$eiln$1@dont-email.me> <uol92t$l82b$3@dont-email.me> <uomjfr$sopf$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: dont-email.me; posting-host="c985c2e759848cd31734101b28e08031";
logging-data="1202644"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/K+oLyfyeUSjJ8CFbtVGCfwpZJoum3gqw="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:+IfQilaipuxQxbAmAiOr4pVEoAM=
sha1:Ntb5uAqkFFP683sJ4nw74zQoiIg=
 by: Tim Rentsch - Tue, 23 Jan 2024 04:23 UTC

Lawrence D'Oliveiro <ldo@nz.invalid> writes:

[.. using ISO646 names for logical operators ..]

> I do, if/when I do use C++ and C. Don't you think it improves
> readability:
>
> [example]

No, quite the contrary.

Re: iso646.h

<uonjsu$15b7p$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=31432&group=comp.lang.c#31432

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Tue, 23 Jan 2024 06:47:10 +0100
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <uonjsu$15b7p$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <uol92t$l82b$3@dont-email.me>
<uomjfr$sopf$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 23 Jan 2024 05:47:10 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="926277962f7052b283895e45015ff41d";
logging-data="1223929"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/IfidoaZCGqnVVDzmOlO3Q"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:PAAnF5ZdcHdMA8FotR9hfpEhT2w=
In-Reply-To: <uomjfr$sopf$1@dont-email.me>
X-Enigmail-Draft-Status: N1110
 by: Janis Papanagnou - Tue, 23 Jan 2024 05:47 UTC

On 22.01.2024 21:34, Lawrence D'Oliveiro wrote:
> On Mon, 22 Jan 2024 09:30:21 +0100, David Brown wrote:
>
>> ... I don't use the matching names in C++ either ...
>
> I do, if/when I do use C++ and C. Don’t you think it improves readability:
> [...]

I'm a big proponent of readable code. Most of the early languages that
I used had such keywords (and also 'begin' etc. instead of braces).

I seem to recall that the (one?) reason to not have them was to reduce
the number of literal alphabetic keywords, to avoid name clashes.

But replacing '&&' by 'and' also doesn't add to the comprehensibility
of the source code (YMMV), presuming that we want the code to be read
by people who know how to program. It's also idiomatic. And in other
contexts (than C) these symbols have similar meanings.

There's also problems with these names. For example '&&' has not the
semantics of 'and' but of 'and_then', 'or' is actually 'or_else'. Even
it that gets "fixed", it's also not addressing other punctuation token
issues, like using '==' instead of the common '=' or 'equals_to'.

Since the beginning of C we had also other inherent issues with these
symbols; not simple lexical ones like 'and', but e.g. the operator
precedence that is (IMO) broken in at least one place. (I guess you
know them.) And in the earlier C days we had not even a true boolean
type or the 'true' and 'false' literals. Fixing things in a language
like C appears to me to be an arduous and unrewarding task.

So I take it as it comes, and I think, in C, we'd need other things
than an iso646.h header or disputes about personal token preferences.
Anyway.

Janis

Re: iso646.h

<uonkbh$15dsi$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=31433&group=comp.lang.c#31433

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Tue, 23 Jan 2024 06:54:56 +0100
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <uonkbh$15dsi$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <uol92t$l82b$3@dont-email.me>
<uomjfr$sopf$1@dont-email.me>
<pan$9db66$eb4f51b7$5c95cec0$b076ca4d@invalid.invalid>
<uomu7t$uj61$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 23 Jan 2024 05:54:57 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="926277962f7052b283895e45015ff41d";
logging-data="1226642"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Zk6oSwR5MS/ivbzYUvZgk"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:tHkHj7x8SDcAFmoJ4Pe0d4KlFTk=
In-Reply-To: <uomu7t$uj61$3@dont-email.me>
X-Enigmail-Draft-Status: N1110
 by: Janis Papanagnou - Tue, 23 Jan 2024 05:54 UTC

On 23.01.2024 00:37, Lawrence D'Oliveiro wrote:
> On Mon, 22 Jan 2024 23:08:53 -0000 (UTC), Blue-Maned_Hawk wrote:
>
>> Lawrence D'Oliveiro wrote:
>>
>>> Don’t you think it improves readability:
>>
>> No.
>
> Lessig’s Law: The one who writes the code makes the rules.

If by "The one" you mean the company and the project leader then
you are right. If you mean the individual programmer you are not
necessarily right; in my professional contexts there where even
[coding] standards defined that you had to follow. What people
make in their private cubbyhole is of course their own business
(and no one cares).

Janis

Re: iso646.h

<uont40$16rlc$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=31436&group=comp.lang.c#31436

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Tue, 23 Jan 2024 09:24:31 +0100
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <uont40$16rlc$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <uol92t$l82b$3@dont-email.me>
<uomjfr$sopf$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 23 Jan 2024 08:24:32 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c843dfd51cca0053a7acde203d8da68e";
logging-data="1273516"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/6JjFOYVy8Kn+GMPgigt1hPJjjNdTuw4E="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:MwHa1j+Z2p1wMrMQgNJiAFbuODw=
Content-Language: en-GB
In-Reply-To: <uomjfr$sopf$1@dont-email.me>
 by: David Brown - Tue, 23 Jan 2024 08:24 UTC

On 22/01/2024 21:34, Lawrence D'Oliveiro wrote:
> On Mon, 22 Jan 2024 09:30:21 +0100, David Brown wrote:
>
>> ... I don't use the matching names in C++ either ...
>
> I do, if/when I do use C++ and C. Don’t you think it improves readability:

No. But I fully appreciate that this is personal preference and habit.
The same applies to brace style, and the use of parenthesis, and
variable naming :

if ((ch < '0') || (ch > '0')) {
if (allow_sign && (i == 0) && ((ch == '+') || (ch == '-'))) {
// All fine
} else if (allow_dec && !seen_dec && (ch == '.')) {
seen_dec = true;
} else {
valid = false;
break;
}
}

I wouldn't object to seeing "and" and "or", but I would not feel it
improves readability - it would make the code look more like Python than C.

>
> if (ThisCh < '0' or ThisCh > '9')
> {
> if (AllowSign and Index == 0 and (ThisCh == '+' or ThisCh == '-'))
> {
> /* fine */
> }
> else if (AllowDecimal and not DecimalSeen and ThisCh == '.')
> {
> DecimalSeen = true; /* only allow one decimal point */
> }
> else
> {
> Valid = false;
> break;
> } /*if*/
> } /*if*/
>

Re: iso646.h

<uoo9dn$18rhq$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=31443&group=comp.lang.c#31443

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.neodome.net!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (bart)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Tue, 23 Jan 2024 11:54:31 +0000
Organization: A noiseless patient Spider
Lines: 87
Message-ID: <uoo9dn$18rhq$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <uol92t$l82b$3@dont-email.me>
<uomjfr$sopf$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 23 Jan 2024 11:54:31 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8742e5598e1d813c0e920801ede76464";
logging-data="1338938"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+qOcee01gpxCQCkIA9q4ucjb4bVINeb6A="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Ral6kRpDyiu+LrPNcapYqiT7w1w=
Content-Language: en-GB
In-Reply-To: <uomjfr$sopf$1@dont-email.me>
 by: bart - Tue, 23 Jan 2024 11:54 UTC

On 22/01/2024 20:34, Lawrence D'Oliveiro wrote:
> On Mon, 22 Jan 2024 09:30:21 +0100, David Brown wrote:
>
>> ... I don't use the matching names in C++ either ...
>
> I do, if/when I do use C++ and C. Don’t you think it improves readability:
>
> if (ThisCh < '0' or ThisCh > '9')
> {
> if (AllowSign and Index == 0 and (ThisCh == '+' or ThisCh == '-'))
> {
> /* fine */
> }
> else if (AllowDecimal and not DecimalSeen and ThisCh == '.')
> {
> DecimalSeen = true; /* only allow one decimal point */
> }
> else
> {
> Valid = false;
> break;
> } /*if*/
> } /*if*/
>

I strongly dislike C syntax, but this iso646 thing barely address 1% of
it. So I'm not surprised few bother.

Especially if you have to go the the trouble of including a header file
just to be able to use what should be language keywords.

In my everyday language (lower level like C) this can be written as:

if ch not in '0'..'9' then
if allowsign and index = 0 and ch in ['+', '-'] then
# fine

elsif allowdecimal and not decimalseen and ch = '-' then
decimalseen := true

else
valid := false
exit

end if
end if

(Notice no braces or parentheses.)

> if
> (
> ThisCh >= 'a' and ThisCh <= 'z'
> or
> ThisCh >= 'A' and ThisCh <= 'Z'
> or
> ThisCh >= '0' and ThisCh <= '9'
> or
> ThisCh == '_'
> or
> ThisCh == '-'
> or
> ThisCh == '.'
> or
> ThisCh == '/'
> )
> {
> Result.append(1, ThisCh);
> }

This one could be a Switch (mine allows 'a'..'z' like using gcc's
extension), but that might be overkill.

Otherwise:

if ch in 'A'..'Z' or ch in 'a'..'z' or ch in '0'..'9' or
ch in ['_', '-', '.', '/'] then
result.append(1, ch)

I shortened your ThisCh to something more apt for a local variable.

Alternatively, I'd use:

if namemap[ch] then
...

but this is now rewriting your code, not just showing alternate synax.

Re: iso646.h

<uoopm9$1blvh$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=31445&group=comp.lang.c#31445

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: malcolm....@gmail.com (Malcolm McLean)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Tue, 23 Jan 2024 16:32:09 +0000
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <uoopm9$1blvh$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <uol92t$l82b$3@dont-email.me>
<uomjfr$sopf$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 23 Jan 2024 16:32:10 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3f2fda70686ab981ae50523ea4f7581b";
logging-data="1431537"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19UP0dQm+h19DEsgawyPTfpoOwNOaJAMjU="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Va9GSMJkjBPiycI6LO+5yAJ1P84=
In-Reply-To: <uomjfr$sopf$1@dont-email.me>
Content-Language: en-GB
 by: Malcolm McLean - Tue, 23 Jan 2024 16:32 UTC

On 22/01/2024 20:34, Lawrence D'Oliveiro wrote:
> On Mon, 22 Jan 2024 09:30:21 +0100, David Brown wrote:
>
>> ... I don't use the matching names in C++ either ...
>
> I do, if/when I do use C++ and C. Don’t you think it improves readability:
>
It breaks the rule that, in C, variables and functions are alphnumeric,
whilst operators are symbols. sizeof is an exception, but a justified
one. However it's harder to justify a symbol for "plus" but a word for "or".

--
Check out Basic Algorithms and my other books:
https://www.lulu.com/spotlight/bgy1mm

Re: iso646.h

<uoosj4$1aidf$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=31447&group=comp.lang.c#31447

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lew.pitc...@digitalfreehold.ca (Lew Pitcher)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Tue, 23 Jan 2024 17:21:40 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <uoosj4$1aidf$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <uol92t$l82b$3@dont-email.me>
<uomjfr$sopf$1@dont-email.me> <uoopm9$1blvh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 23 Jan 2024 17:21:40 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3d4aeba073cec1184b5388b61b84d663";
logging-data="1395119"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/tDj190R49F80iCkkDuikyEbECZ1Ui678="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:nj0jB3QnRapmuEMXpU+wlT4Sdlo=
 by: Lew Pitcher - Tue, 23 Jan 2024 17:21 UTC

On Tue, 23 Jan 2024 16:32:09 +0000, Malcolm McLean wrote:

> On 22/01/2024 20:34, Lawrence D'Oliveiro wrote:
>> On Mon, 22 Jan 2024 09:30:21 +0100, David Brown wrote:
>>
>>> ... I don't use the matching names in C++ either ...
>>
>> I do, if/when I do use C++ and C. Don’t you think it improves readability:
>>
> It breaks the rule that, in C, variables and functions are alphnumeric,
> whilst operators are symbols. sizeof is an exception, but a justified
> one. However it's harder to justify a symbol for "plus" but a word for "or".

Less importantly, it also violates the convention that C macros are named in
upper case to distinguish them from keywords and "regular" identifiers.

I'll stick with the native C operators, but IF I were working in an environment
where 'special characters' were problematic (such as where digraphs or trigraphs
are necessary), I'd rather use
a OR b
instead of
a or b

--
Lew Pitcher
"In Skills We Trust"

Re: iso646.h

<uop0r1$1d4d4$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=31448&group=comp.lang.c#31448

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (bart)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Tue, 23 Jan 2024 18:34:09 +0000
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <uop0r1$1d4d4$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <uol92t$l82b$3@dont-email.me>
<uomjfr$sopf$1@dont-email.me> <uoopm9$1blvh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 23 Jan 2024 18:34:09 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8742e5598e1d813c0e920801ede76464";
logging-data="1479076"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/2Lhy6em0S9atfc+h1rR6YUe93TYnA07I="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:/4H42X7eRBA/yLRd9Qpg5bq+fj0=
In-Reply-To: <uoopm9$1blvh$1@dont-email.me>
Content-Language: en-GB
 by: bart - Tue, 23 Jan 2024 18:34 UTC

On 23/01/2024 16:32, Malcolm McLean wrote:
> On 22/01/2024 20:34, Lawrence D'Oliveiro wrote:
>> On Mon, 22 Jan 2024 09:30:21 +0100, David Brown wrote:
>>
>>> ... I don't use the matching names in C++ either ...
>>
>> I do, if/when I do use C++ and C. Don’t you think it improves
>> readability:
>>
> It breaks the rule that, in C, variables and functions are alphnumeric,
> whilst operators are symbols. sizeof is an exception, but a justified
> one. However it's harder to justify a symbol for "plus" but a word for
> "or".

But it's OK to justify 'pow' for exponentiation?

Every explanation for && and || for every language that copied them from
C, is that && means AND, and || means OR.

Presumably everyone knows what AND and OR mean. So why not just use AND
and OR?

A lot of C code already looks a sea of punctuation; it can be good to
break it up a little.

Pages:1234567891011121314151617181920212223242526
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor