Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"You can have my Unix system when you pry it from my cold, dead fingers." -- Cal Keegan


devel / comp.lang.c / Re: C vs Haskell for XML parsing

SubjectAuthor
* C vs Haskell for XML parsingMalcolm McLean
+* Re: C vs Haskell for XML parsingBart
|+* Re: C vs Haskell for XML parsingBen Bacarisse
||`* Re: C vs Haskell for XML parsingMalcolm McLean
|| `* Re: C vs Haskell for XML parsingBen Bacarisse
||  `* Re: C vs Haskell for XML parsingMalcolm McLean
||   `* Re: C vs Haskell for XML parsingBen Bacarisse
||    +* Re: C vs Haskell for XML parsingMalcolm McLean
||    |`- Re: C vs Haskell for XML parsingBen Bacarisse
||    `* Re: C vs Haskell for XML parsingMalcolm McLean
||     +- Re: C vs Haskell for XML parsingLew Pitcher
||     +* Re: C vs Haskell for XML parsingScott Lurndal
||     |+* Re: C vs Haskell for XML parsingLew Pitcher
||     ||+- Re: C vs Haskell for XML parsingLew Pitcher
||     ||`- Re: C vs Haskell for XML parsingScott Lurndal
||     |`* Re: C vs Haskell for XML parsingBen Bacarisse
||     | `- Re: C vs Haskell for XML parsingScott Lurndal
||     `* Re: C vs Haskell for XML parsingBen Bacarisse
||      `* Re: C vs Haskell for XML parsingMalcolm McLean
||       +- Re: C vs Haskell for XML parsingRichard Damon
||       `* Re: C vs Haskell for XML parsingBen Bacarisse
||        `* Re: C vs Haskell for XML parsingMalcolm McLean
||         +- Re: C vs Haskell for XML parsingKeith Thompson
||         `* Re: C vs Haskell for XML parsingBen Bacarisse
||          +* Re: C vs Haskell for XML parsingMalcolm McLean
||          |`- Re: C vs Haskell for XML parsingBen Bacarisse
||          `* Re: C vs Haskell for XML parsingDavid Brown
||           +* Re: C vs Haskell for XML parsingMalcolm McLean
||           |`* Re: C vs Haskell for XML parsingDavid Brown
||           | `* Re: C vs Haskell for XML parsingMalcolm McLean
||           |  `* Re: C vs Haskell for XML parsingDavid Brown
||           |   +* Re: C vs Haskell for XML parsingMalcolm McLean
||           |   |+* Re: C vs Haskell for XML parsingDavid Brown
||           |   ||`* Re: C vs Haskell for XML parsingMalcolm McLean
||           |   || `* Re: C vs Haskell for XML parsingDavid Brown
||           |   ||  `* Re: C vs Haskell for XML parsingMalcolm McLean
||           |   ||   `* Re: C vs Haskell for XML parsingDavid Brown
||           |   ||    `* Re: C vs Haskell for XML parsingMalcolm McLean
||           |   ||     +* Re: C vs Haskell for XML parsingBart
||           |   ||     |`* Re: C vs Haskell for XML parsingMalcolm McLean
||           |   ||     | `- Re: C vs Haskell for XML parsingDavid Brown
||           |   ||     +* Re: C vs Haskell for XML parsingDavid Brown
||           |   ||     |`* Re: C vs Haskell for XML parsingMalcolm McLean
||           |   ||     | +- Re: C vs Haskell for XML parsingScott Lurndal
||           |   ||     | `* Re: C vs Haskell for XML parsingDavid Brown
||           |   ||     |  `* Re: C vs Haskell for XML parsingMalcolm McLean
||           |   ||     |   `* Re: C vs Haskell for XML parsingDavid Brown
||           |   ||     |    `* Re: C vs Haskell for XML parsingMalcolm McLean
||           |   ||     |     +* Re: C vs Haskell for XML parsingBart
||           |   ||     |     |+* Re: C vs Haskell for XML parsingKaz Kylheku
||           |   ||     |     ||`- Re: C vs Haskell for XML parsingKaz Kylheku
||           |   ||     |     |`- Re: C vs Haskell for XML parsingDavid Brown
||           |   ||     |     `* Re: C vs Haskell for XML parsingDavid Brown
||           |   ||     |      +* Re: C vs Haskell for XML parsingMalcolm McLean
||           |   ||     |      |+* Re: C vs Haskell for XML parsingKeith Thompson
||           |   ||     |      ||+* Re: C vs Haskell for XML parsingScott Lurndal
||           |   ||     |      |||`* Re: C vs Haskell for XML parsingLew Pitcher
||           |   ||     |      ||| `* Re: C vs Haskell for XML parsingKeith Thompson
||           |   ||     |      |||  `- Re: C vs Haskell for XML parsingLew Pitcher
||           |   ||     |      ||+* Re: C vs Haskell for XML parsingMalcolm McLean
||           |   ||     |      |||`* Re: C vs Haskell for XML parsingKeith Thompson
||           |   ||     |      ||| `* Re: C vs Haskell for XML parsingMalcolm McLean
||           |   ||     |      |||  `- Re: C vs Haskell for XML parsingDavid Brown
||           |   ||     |      ||`* Re: C vs Haskell for XML parsingMalcolm McLean
||           |   ||     |      || +* Re: C vs Haskell for XML parsingScott Lurndal
||           |   ||     |      || |`* Re: C vs Haskell for XML parsingMalcolm McLean
||           |   ||     |      || | +- Re: C vs Haskell for XML parsingDavid Brown
||           |   ||     |      || | `* Re: C vs Haskell for XML parsingJames Kuyper
||           |   ||     |      || |  +* Re: C vs Haskell for XML parsingMalcolm McLean
||           |   ||     |      || |  |+* Re: C vs Haskell for XML parsingDavid Brown
||           |   ||     |      || |  ||`* Re: C vs Haskell for XML parsingMalcolm McLean
||           |   ||     |      || |  || `* Re: C vs Haskell for XML parsingDavid Brown
||           |   ||     |      || |  ||  `* Re: C vs Haskell for XML parsingKaz Kylheku
||           |   ||     |      || |  ||   +- Re: C vs Haskell for XML parsingMalcolm McLean
||           |   ||     |      || |  ||   `* Re: C vs Haskell for XML parsingDavid Brown
||           |   ||     |      || |  ||    `* Re: C vs Haskell for XML parsingMalcolm McLean
||           |   ||     |      || |  ||     `* Re: C vs Haskell for XML parsingDavid Brown
||           |   ||     |      || |  ||      `* Re: C vs Haskell for XML parsingMalcolm McLean
||           |   ||     |      || |  ||       `- Re: C vs Haskell for XML parsingTim Rentsch
||           |   ||     |      || |  |+* Re: C vs Haskell for XML parsingKaz Kylheku
||           |   ||     |      || |  ||`- Re: C vs Haskell for XML parsingMalcolm McLean
||           |   ||     |      || |  |+- Re: C vs Haskell for XML parsingKeith Thompson
||           |   ||     |      || |  |`- Re: C vs Haskell for XML parsingKeith Thompson
||           |   ||     |      || |  `- Re: C vs Haskell for XML parsingScott Lurndal
||           |   ||     |      || `* Re: C vs Haskell for XML parsingDavid Brown
||           |   ||     |      ||  `* Re: C vs Haskell for XML parsingMalcolm McLean
||           |   ||     |      ||   +- Re: C vs Haskell for XML parsingChris M. Thomasson
||           |   ||     |      ||   `- Re: C vs Haskell for XML parsingDavid Brown
||           |   ||     |      |`* Re: C vs Haskell for XML parsingDavid Brown
||           |   ||     |      | +* Re: C vs Haskell for XML parsingKeith Thompson
||           |   ||     |      | |+* Re: C vs Haskell for XML parsingRichard Damon
||           |   ||     |      | ||+* Re: C vs Haskell for XML parsingKeith Thompson
||           |   ||     |      | |||+- Re: C vs Haskell for XML parsingBen Bacarisse
||           |   ||     |      | |||+* Re: C vs Haskell for XML parsingRichard Damon
||           |   ||     |      | ||||`* Re: C vs Haskell for XML parsingKeith Thompson
||           |   ||     |      | |||| `* Re: C vs Haskell for XML parsingRichard Damon
||           |   ||     |      | ||||  `* Re: C vs Haskell for XML parsingKeith Thompson
||           |   ||     |      | ||||   `* Re: C vs Haskell for XML parsingRichard Damon
||           |   ||     |      | ||||    `* Re: C vs Haskell for XML parsingKeith Thompson
||           |   ||     |      | ||||     `* Re: C vs Haskell for XML parsingRichard Damon
||           |   ||     |      | ||||      `* Re: C vs Haskell for XML parsingKeith Thompson
||           |   ||     |      | |||`- Re: C vs Haskell for XML parsingDavid Brown
||           |   ||     |      | ||`* Re: C vs Haskell for XML parsingBart
||           |   ||     |      | |`* Re: C vs Haskell for XML parsingDavid Brown
||           |   ||     |      | `* Re: C vs Haskell for XML parsingMalcolm McLean
||           |   ||     |      +- Re: C vs Haskell for XML parsingSpiros Bousbouras
||           |   ||     |      +* Re: C vs Haskell for XML parsingMalcolm McLean
||           |   ||     |      +* Underscores in type names (was : C vs Haskell for XML parsing)Spiros Bousbouras
||           |   ||     |      +* Re: C vs Haskell for XML parsingDavid Brown
||           |   ||     |      `- Re: C vs Haskell for XML parsingMalcolm McLean
||           |   ||     `- Re: C vs Haskell for XML parsingKeith Thompson
||           |   |`- Re: C vs Haskell for XML parsingScott Lurndal
||           |   `- Re: C vs Haskell for XML parsingBart
||           `- Re: C vs Haskell for XML parsingBen Bacarisse
|+* Re: C vs Haskell for XML parsingfir
|`* Re: C vs Haskell for XML parsingKaz Kylheku
+- Re: C vs Haskell for XML parsingBen Bacarisse
+- Re: C vs Haskell for XML parsingfir
`* Re: C vs Haskell for XML parsingfir

Pages:123456789101112
Re: C vs Haskell for XML parsing

<uchp46$1kl9e$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: C vs Haskell for XML parsing
Date: Mon, 28 Aug 2023 11:24:22 +0200
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <uchp46$1kl9e$2@dont-email.me>
References: <576801fa-2842-40dc-bf19-221a5b1cf660n@googlegroups.com>
<uc28id$2dc7f$1@dont-email.me>
<b21393a6-c4f5-436a-9975-8ffedd6bf20bn@googlegroups.com>
<uc2dbv$2e4tg$1@dont-email.me>
<d734d616-b18e-4e67-b858-f0eb0a636a87n@googlegroups.com>
<uc2qnl$2gh96$1@dont-email.me>
<d651e08e-033d-4a90-8477-6a5fa13d30f3n@googlegroups.com>
<uc4e4t$2rdlt$1@dont-email.me>
<1e79f8a1-b707-4074-b272-ce4327ee7bc0n@googlegroups.com>
<uc5dd0$30jrk$1@dont-email.me>
<81879984-43e7-409a-a029-1ca6677f536dn@googlegroups.com>
<uc5mlk$32gl3$1@dont-email.me>
<8eec8404-4928-4bc3-8b00-c673ea22ab60n@googlegroups.com>
<uc7l4o$3fp72$1@dont-email.me>
<639e8e6f-2729-476b-9a6e-0b3eb066b06an@googlegroups.com>
<uc9m7v$3u797$1@dont-email.me>
<d3c6df71-7ef5-4fd3-83be-8b9a4315f0c4n@googlegroups.com>
<uca3sh$p9c$1@dont-email.me>
<efcf98fa-f078-490c-99fa-5c281cadcebbn@googlegroups.com>
<873505pdw0.fsf@bsb.me.uk> <ucg0lf$18cb9$6@dont-email.me>
<87y1hwm3xg.fsf@bsb.me.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 28 Aug 2023 09:24:22 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e81667950acd893cb93e6800794cb322";
logging-data="1725742"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19LI4k7l0jJfjuB4zjYiYCHZL7+7saLZ2c="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.9.0
Cancel-Lock: sha1:1QfBgt/HBEs/cXdA0Q+CMRv301c=
Content-Language: en-GB
In-Reply-To: <87y1hwm3xg.fsf@bsb.me.uk>
 by: David Brown - Mon, 28 Aug 2023 09:24 UTC

On 28/08/2023 02:00, Ben Bacarisse wrote:
> David Brown <david.brown@hesbynett.no> writes:
>
>> On 27/08/2023 01:44, Ben Bacarisse wrote:
>>> As it happens, I am not with David on this. There are many matters on
>>> which I think an appeal to authority carries significant weight. I
>>> don't know DMR's opinion of underscores (the code in K&R is indicative
>>> but not exactly conclusive), but I would take more time considering it
>>> than I would Kevin's or Barbara's. It's just one way to simplify life.
>>
>> Ah, now it is /your/ turn to misunderstand the "appeal to authority"
>> fallacy - or at least, to Malcolm's use of it or my objection to his
>> use.
>
> I did not refer to any supposed fallacy.
>
>> It's fine to "appeal to authority" as supporting evidence for a claim, and
>> it is absolutely appropriate to view DMR's opinion on C style in higher
>> standing than Kevin's or Barbara's.
>
> That is all I was referring to and all I was commenting on in MM's post.
>
>> But it is fallacious to think of DMR's opinion as being proof that
>> Malcolm's theories are correct - at best, they could be supporting
>> evidence.
>
> Maybe you went further and were suggesting that he was constructing a
> logical argument based on the appeal to authority. If so, I missed
> that. I didn't think he was doing that.
>

I think he has been, in several cases, basing his argument on fallacious
appeals to authority (to paraphrase - "God didn't use inter-word
spacing, so clearly continuous text is always a good thing" and "DMR
never used underscores, so they make identifiers harder to read and
continuous text is more legible").

But you are right (I think) that he was not using it to further an
argument in the particular part of a post that you quoted.

Anyway, I wanted to make it clear that when you wrote "I am not with
David on this", you in fact /are/ with me - because I fully agree that
"There are many matters on which an appeal to authority carries
significant weight". I have only been objecting to Malcolm's appeals to
authority in which they do /not/ carry significant weight, or carry it
contrary to what he has been claiming.

Re: C vs Haskell for XML parsing

<f9e0f800-e704-4a93-b05f-95af343b650fn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:4c8b:b0:76f:6f0:16d3 with SMTP id to11-20020a05620a4c8b00b0076f06f016d3mr229149qkn.13.1693218555529;
Mon, 28 Aug 2023 03:29:15 -0700 (PDT)
X-Received: by 2002:a05:620a:483:b0:76d:c77f:cf0b with SMTP id
3-20020a05620a048300b0076dc77fcf0bmr610462qkr.9.1693218555294; Mon, 28 Aug
2023 03:29:15 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Mon, 28 Aug 2023 03:29:15 -0700 (PDT)
In-Reply-To: <uchp46$1kl9e$2@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:400a:5601:49ab:6c76:d8de:136a;
posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 2a00:23a8:400a:5601:49ab:6c76:d8de:136a
References: <576801fa-2842-40dc-bf19-221a5b1cf660n@googlegroups.com>
<uc28id$2dc7f$1@dont-email.me> <b21393a6-c4f5-436a-9975-8ffedd6bf20bn@googlegroups.com>
<uc2dbv$2e4tg$1@dont-email.me> <d734d616-b18e-4e67-b858-f0eb0a636a87n@googlegroups.com>
<uc2qnl$2gh96$1@dont-email.me> <d651e08e-033d-4a90-8477-6a5fa13d30f3n@googlegroups.com>
<uc4e4t$2rdlt$1@dont-email.me> <1e79f8a1-b707-4074-b272-ce4327ee7bc0n@googlegroups.com>
<uc5dd0$30jrk$1@dont-email.me> <81879984-43e7-409a-a029-1ca6677f536dn@googlegroups.com>
<uc5mlk$32gl3$1@dont-email.me> <8eec8404-4928-4bc3-8b00-c673ea22ab60n@googlegroups.com>
<uc7l4o$3fp72$1@dont-email.me> <639e8e6f-2729-476b-9a6e-0b3eb066b06an@googlegroups.com>
<uc9m7v$3u797$1@dont-email.me> <d3c6df71-7ef5-4fd3-83be-8b9a4315f0c4n@googlegroups.com>
<uca3sh$p9c$1@dont-email.me> <efcf98fa-f078-490c-99fa-5c281cadcebbn@googlegroups.com>
<873505pdw0.fsf@bsb.me.uk> <ucg0lf$18cb9$6@dont-email.me> <87y1hwm3xg.fsf@bsb.me.uk>
<uchp46$1kl9e$2@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f9e0f800-e704-4a93-b05f-95af343b650fn@googlegroups.com>
Subject: Re: C vs Haskell for XML parsing
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Mon, 28 Aug 2023 10:29:15 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Malcolm McLean - Mon, 28 Aug 2023 10:29 UTC

On Monday, 28 August 2023 at 10:24:41 UTC+1, David Brown wrote:
> On 28/08/2023 02:00, Ben Bacarisse wrote:
> > David Brown <david...@hesbynett.no> writes:
> >
> >> On 27/08/2023 01:44, Ben Bacarisse wrote:
> >>> As it happens, I am not with David on this. There are many matters on
> >>> which I think an appeal to authority carries significant weight. I
> >>> don't know DMR's opinion of underscores (the code in K&R is indicative
> >>> but not exactly conclusive), but I would take more time considering it
> >>> than I would Kevin's or Barbara's. It's just one way to simplify life.
> >>
> >> Ah, now it is /your/ turn to misunderstand the "appeal to authority"
> >> fallacy - or at least, to Malcolm's use of it or my objection to his
> >> use.
> >
> > I did not refer to any supposed fallacy.
> >
> >> It's fine to "appeal to authority" as supporting evidence for a claim, and
> >> it is absolutely appropriate to view DMR's opinion on C style in higher
> >> standing than Kevin's or Barbara's.
> >
> > That is all I was referring to and all I was commenting on in MM's post.
> >
> >> But it is fallacious to think of DMR's opinion as being proof that
> >> Malcolm's theories are correct - at best, they could be supporting
> >> evidence.
> >
> > Maybe you went further and were suggesting that he was constructing a
> > logical argument based on the appeal to authority. If so, I missed
> > that. I didn't think he was doing that.
> >
> I think he has been, in several cases, basing his argument on fallacious
> appeals to authority (to paraphrase - "God didn't use inter-word
> spacing, so clearly continuous text is always a good thing" and "DMR
> never used underscores, so they make identifiers harder to read and
> continuous text is more legible").
>
> But you are right (I think) that he was not using it to further an
> argument in the particular part of a post that you quoted.
>
The claim was that "The only thing /wrong/ - and pretty much everyone
thinks it is wrong - would be to call it "multiplymatrixwithvector".

So of course to refute this you have to provide a few counter-examples.
Now it's not committing the fallacy of arguing from authority to choose
counter-examples who are familiar, well-respected figures rather than
those who wouldn't be familiar to most readers.
>
> Anyway, I wanted to make it clear that when you wrote "I am not with
> David on this", you in fact /are/ with me - because I fully agree that
> "There are many matters on which an appeal to authority carries
> significant weight". I have only been objecting to Malcolm's appeals to
> authority in which they do /not/ carry significant weight, or carry it
> contrary to what he has been claiming.
>
Reality is that even sophisticated thinkers use appeals to authority all the
time. For instance I quite frequently point out to scientists that peer review
is an appeal to authority. Some of them get it. But a lot don't. These are highly
educated, highly intelligent people who work in universities alongside
professional philosophers, but they can't understand that they are making a
basic logical error.
There are two reasons. The first is that as a heuristic, authority is usually
right, people who are not recognised authorities and dissent from the accepted
consensus are usually wrong. The second reason is that when the fallacy is
explained, the person doing the explaining doesn't really understand it
himself, and does a a bad job. So he gives an example of where the authority
isn't really an authority, and is in the wrong. "Homeopathy must be right
because ing Charles believes in it".

Ritchie is a real authority, probably the world's most capable person, at
designing programming languages. But nothing he said is correct,
because Denis Ritchie said it. It's correct because the arguments he used
hold water.

Re: C vs Haskell for XML parsing

<uci0fa$1m3b3$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: C vs Haskell for XML parsing
Date: Mon, 28 Aug 2023 13:29:45 +0200
Organization: A noiseless patient Spider
Lines: 102
Message-ID: <uci0fa$1m3b3$1@dont-email.me>
References: <576801fa-2842-40dc-bf19-221a5b1cf660n@googlegroups.com>
<81879984-43e7-409a-a029-1ca6677f536dn@googlegroups.com>
<uc5mlk$32gl3$1@dont-email.me>
<8eec8404-4928-4bc3-8b00-c673ea22ab60n@googlegroups.com>
<uc7l4o$3fp72$1@dont-email.me>
<639e8e6f-2729-476b-9a6e-0b3eb066b06an@googlegroups.com>
<uc9m7v$3u797$1@dont-email.me>
<d3c6df71-7ef5-4fd3-83be-8b9a4315f0c4n@googlegroups.com>
<87h6onfje9.fsf@nosuchdomain.example.com>
<66653005-66fa-4a89-8b1f-0b415fb7e8ean@googlegroups.com>
<yJnGM.142651$ftCb.40495@fx34.iad>
<03a4b2f0-92a7-4652-86f6-66f7d5cf8853n@googlegroups.com>
<ucg9ou$1a678$1@dont-email.me>
<24081c60-e8eb-467d-a5e2-3ac05104b03en@googlegroups.com>
<uchmgi$1kdo7$1@dont-email.me>
<ac994d20-9887-4f93-a9e2-ed78224a91can@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 28 Aug 2023 11:29:46 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e81667950acd893cb93e6800794cb322";
logging-data="1772899"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX181hwWoygLB+zSDeo+/pM3lxfZoipVVlfU="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.9.0
Cancel-Lock: sha1:4xYMYj/mSu9OHZvClqG6m5tNeb0=
Content-Language: en-GB
In-Reply-To: <ac994d20-9887-4f93-a9e2-ed78224a91can@googlegroups.com>
 by: David Brown - Mon, 28 Aug 2023 11:29 UTC

On 28/08/2023 11:03, Malcolm McLean wrote:
> On Monday, 28 August 2023 at 09:40:00 UTC+1, David Brown wrote:
>> On 28/08/2023 09:42, Malcolm McLean wrote:
>>
>>> People work out complex
>>> and rather tendentious theories about why the ancients used Scriptio Continua
>>> and moderns use text separated by spaces.
>>>
>> Yes - people that are a lot smarter and more knowledgable than you, and
>> that don't have some bizarre agenda to try to "prove" that their unique
>> and illegible naming style is somehow better than what everyone else uses.
>>
>>> You need to understand the strength of the simple, obvious argument, before you
>>> try to snipe at it with sophisticated objections.
>>>
>>
> A simple, straightforwards, obvious and natural point takes priority.

Do you agree that word break indication makes text easier to read?

You agree therefore that continuous text is harder to read?

You understand that word breaks were used from very early times in some
texts?

You understand therefore that continuous text was used despite more
legible alternatives being available, and that in at least some cases,
it is reasonable to suppose the writer was familiar with alternatives
and could see that it was easier to read?

This means that in at least some cases, the use of continuous text was
motivated by factors that outweighed legibility - perhaps costs, perhaps
intentionally making the text harder to read.

I don't actually expect you to answer these questions - I expect more
strawmen, more fallacious appeals to authority, more rambling stories,
and no actual relevant points. But you might surprise me.

> Scriptio Continua
> was used for 2000 years (first texts about 700 BC or so, the last texts 13th century
> - I make that about 2000 years).

Older Greek was written with spaces, and a variety of dots was also
used. Scriptio Continua was fairly common (but very far from universal)
in Greek from perhaps about 400 BC, and Latin from around 100 BC to
maybe 700 AD. It existed outside that range, but was a minor style -
you don't get to write something now in Scriptio Continua and claim it
is still in use in the 21st century.

So around 1000 years is closer than 2000 years. If you want to say 1200
years, I'll not argue.

> So if it was difficut to read, would it have been
> used for so long? Obviously not.

It /was/ (and is) difficult to read - it was used despite that. People
do odd things all the time, and strange habits become popular for all
sorts of reasons - despite common sense.

> People would have used dots or vertical lines,
> both of which were used in very early Latin and Greek texts, and occasionally appear
> in later manuscripts, but weren't very popular.
>
> You have to learn how to draw conclusions from the information, not to trawl through
> material looking for reasons to object to the obvious, because you are naturally
> contentious in character.

I have looked at the information - including what experts (not me, not
you) have said on the matter. Two things are clear from the experts -
continuous script was far from the universal norm, and that nobody is
sure why it existed at all because everyone agrees it is significantly
more difficult to read than when there are word breaks.

It is a truly foolish viewpoint to think "people do/did this a lot,
therefore it must be a good idea".

I would suggest that /you/ have been drawing unwarranted conclusions
from your data - despite cherry-picking your examples and authorities in
an attempt to shore up your unique viewpoints.

The only thing you can conclude from people writing without word breaks
is that it was not /so/ hard to read that it could not be used, and that
other considerations then outweighed ease of reading.

>>
>>> M.B. Parkes was my teacher at Oxford by the way. He taught me this stuff.
>>
>> Appeal to authority again? Except this time you have picked an
>> "authority" that is meaningless to your audience, and who would probably
>> be horrified to hear what a jumbled mess you have made of his teachings,
>> and how you misuse your misunderstandings to justify bad coding (based
>> on the Wikipedia article and references).
>>
> Not really. When your old tutor's works come up, it's natural to mention that
> he was your tutor.

What you consider "natural" is often at odds with what other people
consider natural. But again, you are missing the point.

Re: C vs Haskell for XML parsing

<uci2a0$1meat$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: C vs Haskell for XML parsing
Date: Mon, 28 Aug 2023 14:01:04 +0200
Organization: A noiseless patient Spider
Lines: 128
Message-ID: <uci2a0$1meat$1@dont-email.me>
References: <576801fa-2842-40dc-bf19-221a5b1cf660n@googlegroups.com>
<uc2dbv$2e4tg$1@dont-email.me>
<d734d616-b18e-4e67-b858-f0eb0a636a87n@googlegroups.com>
<uc2qnl$2gh96$1@dont-email.me>
<d651e08e-033d-4a90-8477-6a5fa13d30f3n@googlegroups.com>
<uc4e4t$2rdlt$1@dont-email.me>
<1e79f8a1-b707-4074-b272-ce4327ee7bc0n@googlegroups.com>
<uc5dd0$30jrk$1@dont-email.me>
<81879984-43e7-409a-a029-1ca6677f536dn@googlegroups.com>
<uc5mlk$32gl3$1@dont-email.me>
<8eec8404-4928-4bc3-8b00-c673ea22ab60n@googlegroups.com>
<uc7l4o$3fp72$1@dont-email.me>
<639e8e6f-2729-476b-9a6e-0b3eb066b06an@googlegroups.com>
<uc9m7v$3u797$1@dont-email.me>
<d3c6df71-7ef5-4fd3-83be-8b9a4315f0c4n@googlegroups.com>
<uca3sh$p9c$1@dont-email.me>
<efcf98fa-f078-490c-99fa-5c281cadcebbn@googlegroups.com>
<873505pdw0.fsf@bsb.me.uk> <ucg0lf$18cb9$6@dont-email.me>
<87y1hwm3xg.fsf@bsb.me.uk> <uchp46$1kl9e$2@dont-email.me>
<f9e0f800-e704-4a93-b05f-95af343b650fn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 28 Aug 2023 12:01:04 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e81667950acd893cb93e6800794cb322";
logging-data="1784157"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19lwK6BSU4PtJrTX4Hm6GoWir2VlIjHGuk="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.9.0
Cancel-Lock: sha1:bd2GPoqUl8ztL7pOtyHLwiMifUs=
In-Reply-To: <f9e0f800-e704-4a93-b05f-95af343b650fn@googlegroups.com>
Content-Language: en-GB
 by: David Brown - Mon, 28 Aug 2023 12:01 UTC

On 28/08/2023 12:29, Malcolm McLean wrote:
> On Monday, 28 August 2023 at 10:24:41 UTC+1, David Brown wrote:
>> On 28/08/2023 02:00, Ben Bacarisse wrote:
>>> David Brown <david...@hesbynett.no> writes:
>>>
>>>> On 27/08/2023 01:44, Ben Bacarisse wrote:
>>>>> As it happens, I am not with David on this. There are many matters on
>>>>> which I think an appeal to authority carries significant weight. I
>>>>> don't know DMR's opinion of underscores (the code in K&R is indicative
>>>>> but not exactly conclusive), but I would take more time considering it
>>>>> than I would Kevin's or Barbara's. It's just one way to simplify life.
>>>>
>>>> Ah, now it is /your/ turn to misunderstand the "appeal to authority"
>>>> fallacy - or at least, to Malcolm's use of it or my objection to his
>>>> use.
>>>
>>> I did not refer to any supposed fallacy.
>>>
>>>> It's fine to "appeal to authority" as supporting evidence for a claim, and
>>>> it is absolutely appropriate to view DMR's opinion on C style in higher
>>>> standing than Kevin's or Barbara's.
>>>
>>> That is all I was referring to and all I was commenting on in MM's post.
>>>
>>>> But it is fallacious to think of DMR's opinion as being proof that
>>>> Malcolm's theories are correct - at best, they could be supporting
>>>> evidence.
>>>
>>> Maybe you went further and were suggesting that he was constructing a
>>> logical argument based on the appeal to authority. If so, I missed
>>> that. I didn't think he was doing that.
>>>
>> I think he has been, in several cases, basing his argument on fallacious
>> appeals to authority (to paraphrase - "God didn't use inter-word
>> spacing, so clearly continuous text is always a good thing" and "DMR
>> never used underscores, so they make identifiers harder to read and
>> continuous text is more legible").
>>
>> But you are right (I think) that he was not using it to further an
>> argument in the particular part of a post that you quoted.
>>
> The claim was that "The only thing /wrong/ - and pretty much everyone
> thinks it is wrong - would be to call it "multiplymatrixwithvector".
>
> So of course to refute this you have to provide a few counter-examples.
> Now it's not committing the fallacy of arguing from authority to choose
> counter-examples who are familiar, well-respected figures rather than
> those who wouldn't be familiar to most readers.

If DMR had supported your viewpoint, it would have been reasonable to
show his opinion as a valid appeal to authority. But he did not support
it (as far as I know, and as far as has been shown so far) - thus
claiming he did is fallacious. Had you should code that he had written
using names such as "multiplymatrixwithvector", then you would have had
a point.

>>
>> Anyway, I wanted to make it clear that when you wrote "I am not with
>> David on this", you in fact /are/ with me - because I fully agree that
>> "There are many matters on which an appeal to authority carries
>> significant weight". I have only been objecting to Malcolm's appeals to
>> authority in which they do /not/ carry significant weight, or carry it
>> contrary to what he has been claiming.
>>
> Reality is that even sophisticated thinkers use appeals to authority all the
> time.

So now we can add "whataboutism" to your list. It's another popular
fallacy.

> For instance I quite frequently point out to scientists that peer review
> is an appeal to authority.

No, it is not - or at least, it is not /fallacious/ appeals to authority.

> Some of them get it. But a lot don't. These are highly
> educated, highly intelligent people who work in universities alongside
> professional philosophers, but they can't understand that they are making a
> basic logical error.

Peer review - done properly - is not a "basic logical error".

> There are two reasons. The first is that as a heuristic, authority is usually
> right, people who are not recognised authorities and dissent from the accepted
> consensus are usually wrong.

That is correct. (Getting expert opinion from qualified and
knowledgable authorities is not an "appeal to authority" fallacy.)

> The second reason is that when the fallacy is
> explained, the person doing the explaining doesn't really understand it
> himself, and does a a bad job. So he gives an example of where the authority
> isn't really an authority, and is in the wrong. "Homeopathy must be right
> because ing Charles believes in it".

That last example is a good example of an appeal to authority fallacy.
It is completely different from scientific peer review. So if a
scientist does not agree with you when you claim they are the same, then
that's good.

>
> Ritchie is a real authority, probably the world's most capable person, at
> designing programming languages.

He is a real authority on C. There's no doubt that he was capable of
good programming language design. But it is completely unjustified to
suggest he was "probably the world's most capable". There is no world
cup for programming language design. There are no rankings, or scoring
systems.

> But nothing he said is correct,
> because Denis Ritchie said it. It's correct because the arguments he used
> hold water.

Sure. But he did not say long identifiers are best without word breaks,
or that underscores are bad, or that "const" is a terrible idea, or that
"size_t" is horrible. He used underscores in long identifiers, he
supported "const" (with different wording in the C standard than the
original proposal), he created "size_t".

So if /I/ were to write "Dennis Ritchie is arguably one of the most
important original authorities on C, and he supports my points" it would
be a valid appeal to authority. When /you/ write that he supports
/your/ ideas, it is a fallacy because - regardless of whether Ritchie's
thoughts here were right or wrong - he did not support your position.

Re: C vs Haskell for XML parsing

<86edjnxo81.fsf@linuxsc.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!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: C vs Haskell for XML parsing
Date: Mon, 28 Aug 2023 06:58:54 -0700
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <86edjnxo81.fsf@linuxsc.com>
References: <576801fa-2842-40dc-bf19-221a5b1cf660n@googlegroups.com> <uc5mlk$32gl3$1@dont-email.me> <8eec8404-4928-4bc3-8b00-c673ea22ab60n@googlegroups.com> <uc7l4o$3fp72$1@dont-email.me> <639e8e6f-2729-476b-9a6e-0b3eb066b06an@googlegroups.com> <uc9m7v$3u797$1@dont-email.me> <d3c6df71-7ef5-4fd3-83be-8b9a4315f0c4n@googlegroups.com> <uca3sh$p9c$1@dont-email.me> <878r9zeynn.fsf@nosuchdomain.example.com> <AUaGM.174236$JG_b.91752@fx39.iad> <ucbjph$96fa$1@dont-email.me> <ipdGM.457101$xMqa.238959@fx12.iad> <uccitk$hhuj$1@dont-email.me> <H2oGM.827787$TPw2.680260@fx17.iad> <ucd5kt$kl1p$1@dont-email.me> <20230826123929.770@kylheku.com> <ucdp4i$ot46$1@dont-email.me> <20230826210521.20@kylheku.com> <ucf86t$14b70$1@dont-email.me> <20230827151627.814@kylheku.com> <87edjocbqj.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: dont-email.me; posting-host="61b7a310fb4086afc4b0d02730d52894";
logging-data="1823570"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18m13qKOhiRBgEIc79NSuah2zLz6cazdrU="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:ge3GRoYW8hwK0RepMmahzNL0JG0=
sha1:KUFkhtDudP20TbG9YlthOTKKbH8=
 by: Tim Rentsch - Mon, 28 Aug 2023 13:58 UTC

Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:

> Kaz Kylheku <864-117-4973@kylheku.com> writes:

[named function arguments]

>> The only way this can be sanely introduced into C with backward
>> compatibility is if there is a separate way to introduce the
>> parameter names used for named calling, like this:
>>
>> char *strcpy(const char * : dest, char * : src);
>
> Why not just declare
> char *strcpy(const char *dest, char *src);
> and use those names in calls, with a few simple rules for when there's
> more than one visible declaration?

Amusing that both of thesse declarations get the qualifiers
wrong.

I favor a different approach to this problem:

static inline char *
copy_to_from( char *to, const char *from ){
return strcpy( to, from );
}

with no language changes needed. And people are still free to
use the more concise form if they so desire.

Re: C vs Haskell for XML parsing

<gN1HM.144949$ftCb.130257@fx34.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx34.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: C vs Haskell for XML parsing
Newsgroups: comp.lang.c
References: <576801fa-2842-40dc-bf19-221a5b1cf660n@googlegroups.com> <639e8e6f-2729-476b-9a6e-0b3eb066b06an@googlegroups.com> <uc9m7v$3u797$1@dont-email.me> <d3c6df71-7ef5-4fd3-83be-8b9a4315f0c4n@googlegroups.com> <j=2ifExxFfXU05g0F@bongo-ra.co> <ae3d2d4e-71bd-4c6c-99aa-cf8b6b652175n@googlegroups.com> <87pm3bot1n.fsf@bsb.me.uk> <7a9b3883-ee9f-4d46-944c-c11d4f0354d5n@googlegroups.com> <ucdcaf$mj8h$1@dont-email.me> <627cbd87-75d6-49e9-b2e0-733ca17b7cean@googlegroups.com> <ucftjs$186cs$1@dont-email.me>
Lines: 16
Message-ID: <gN1HM.144949$ftCb.130257@fx34.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Mon, 28 Aug 2023 14:01:48 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Mon, 28 Aug 2023 14:01:48 GMT
X-Received-Bytes: 1807
 by: Scott Lurndal - Mon, 28 Aug 2023 14:01 UTC

David Brown <david.brown@hesbynett.no> writes:
>On 27/08/2023 12:05, Malcolm McLean wrote:

<discussion regarding use of underscore characters in identifiers>
>
>But /I/ said something to that effect. And since there are undoubtedly
>three classes here (lots of people have put themselves in the "like"
>group, you and Bart are in the "horrible" group, while Scott has, I
>think, placed himself in the "don't care" group), then there is no doubt
>that your question was a false dichotomy.

Yes, "don't care" is an accurate summation of my position. It's a legal
character in identifiers - there is no intrinsic goodness or badness to it.

That said, I will use it in preference to CamelCase, which I dislike
primarily because of the impact on my typing speed.

Re: C vs Haskell for XML parsing

<SV1HM.144950$ftCb.86751@fx34.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx34.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: C vs Haskell for XML parsing
Newsgroups: comp.lang.c
References: <576801fa-2842-40dc-bf19-221a5b1cf660n@googlegroups.com> <uc9m7v$3u797$1@dont-email.me> <d3c6df71-7ef5-4fd3-83be-8b9a4315f0c4n@googlegroups.com> <uca3sh$p9c$1@dont-email.me> <efcf98fa-f078-490c-99fa-5c281cadcebbn@googlegroups.com> <873505pdw0.fsf@bsb.me.uk> <ucg0lf$18cb9$6@dont-email.me> <ed2e87a5-7930-41c4-b29c-2d91227ea50cn@googlegroups.com> <ucg4uo$19fkm$1@dont-email.me> <dee77a79-b9c6-4528-b563-91e7491505cbn@googlegroups.com> <uchoii$1kl9e$1@dont-email.me>
Lines: 31
Message-ID: <SV1HM.144950$ftCb.86751@fx34.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Mon, 28 Aug 2023 14:10:58 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Mon, 28 Aug 2023 14:10:58 GMT
X-Received-Bytes: 2906
 by: Scott Lurndal - Mon, 28 Aug 2023 14:10 UTC

David Brown <david.brown@hesbynett.no> writes:
>On 28/08/2023 09:32, Malcolm McLean wrote:
>> On Sunday, 27 August 2023 at 19:34:14 UTC+1, Kalevi Kolttonen wrote:
>>> Malcolm McLean <malcolm.ar...@gmail.com> wrote:
>>>> No. Denis Ritchie didn't like const. But to say "const is a bad idea because
>>>> Denis Ritchie didn't support it" is fallacious, though obvioulsy Denis Ritchie
>>>> almost certainly knows what he is talking about, and obvioulsy the committee
>>>> has shown their inferiority inm many other ways. But you have to look at the
>>>> arguments Ritchie used, not just say "Ritchie says so, so it is".
>>> I am sorry, I am a bit lazy today and cannot be bothered to do web
>>> searches. What exactly are Ritchie's arguments against "const"?
>>>
>>> I cannot think of any, but I have heard some that lend support
>>> to having, and properly using, "const".
>>>
>> He write them in a leter tot he committee many years ago.
>> I believe there was also apost to this newsgroup.

"By way of introduction, the important thing about 'const' is that the
current wording says, in section 3.3.4, that a pointer to a const-qualified
object may be cast to a pointer to the plain object, but "If an attempt is
made to modify the pointed-to object by means of the converted pointer,
the behavior is undefined." Because function prototypes tend to convert
your pointers to const-qualified pointers, difficulties arise.In discussion
with various X3J11 members, I learned that this section is now regarded as an
inadvertant error, and no one thinks that it will last in its current form.

Nevertheless, it seemed wisest to keep my comments in their original strong
form. The intentions of the committee are irrelevant; only their document matters.

https://www.yodaiken.com/2021/03/19/dennis-ritchie-on-alias-analysis-in-the-c-programming-language-1988/

Re: C vs Haskell for XML parsing

<iY1HM.144951$ftCb.119573@fx34.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer02.ams4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx34.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: C vs Haskell for XML parsing
Newsgroups: comp.lang.c
References: <576801fa-2842-40dc-bf19-221a5b1cf660n@googlegroups.com> <uc7l4o$3fp72$1@dont-email.me> <639e8e6f-2729-476b-9a6e-0b3eb066b06an@googlegroups.com> <uc9m7v$3u797$1@dont-email.me> <d3c6df71-7ef5-4fd3-83be-8b9a4315f0c4n@googlegroups.com> <87h6onfje9.fsf@nosuchdomain.example.com> <66653005-66fa-4a89-8b1f-0b415fb7e8ean@googlegroups.com> <yJnGM.142651$ftCb.40495@fx34.iad> <03a4b2f0-92a7-4652-86f6-66f7d5cf8853n@googlegroups.com> <ucg9ou$1a678$1@dont-email.me>
Lines: 30
Message-ID: <iY1HM.144951$ftCb.119573@fx34.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Mon, 28 Aug 2023 14:13:34 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Mon, 28 Aug 2023 14:13:34 GMT
X-Received-Bytes: 2466
 by: Scott Lurndal - Mon, 28 Aug 2023 14:13 UTC

James Kuyper <jameskuyper@alumni.caltech.edu> writes:
>On 27/08/2023 07:54, Malcolm McLean wrote:
>> On Saturday, 26 August 2023 at 15:10:54 UTC+1, Scott Lurndal wrote:
>...
>>> The sources I found indicate that it wasn't intended to be read by anyone
>>> other than the person who wrote it.
>>>
>> Just goes to show that you can believe everything you read.
>> Do you think that is remotely plausible?
>
>The Wikipedia article on Scriptio Continua gives precisely that
>explanation. That explanation is bracketed by two citations - it's not
>clear which of the two is most relevant:
>
>
>Moore, F. C. T. (2001). "Scribes and Texts: A Test Case for Models of
>Cultural Transmission". The Monist. 84 (3): 421.
>doi:10.5840/monist200184325. JSTOR 27903738. Retrieved March 24, 2023.
>
>Parkes, M. B. "Antiquity: Aids for Inexperienced Readers and the
>Prehistory of Punctuation". Pause and Effect: An Introduction to the
>History of Punctuation in the West. Berkeley: U of California, 1993. 10–11.
>
>I would not recommend dismissing that thesis out of hand without first
>following up on those citations and learning what reasons they give for
>believing it to be true.

And the undercurrent of my post was the implication that if Malcolm
doesn't care about other people reading his code, he's free to use
'scriptio continua' as his guide for identifier naming.

Re: C vs Haskell for XML parsing

<q_1HM.144952$ftCb.122801@fx34.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx34.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: C vs Haskell for XML parsing
Newsgroups: comp.lang.c
References: <576801fa-2842-40dc-bf19-221a5b1cf660n@googlegroups.com> <878r9zeynn.fsf@nosuchdomain.example.com> <AUaGM.174236$JG_b.91752@fx39.iad> <ucbjph$96fa$1@dont-email.me> <ipdGM.457101$xMqa.238959@fx12.iad> <uccitk$hhuj$1@dont-email.me> <H2oGM.827787$TPw2.680260@fx17.iad> <ucd5kt$kl1p$1@dont-email.me> <20230826123929.770@kylheku.com> <ucdp4i$ot46$1@dont-email.me> <20230826210521.20@kylheku.com> <ucf86t$14b70$1@dont-email.me> <20230827151627.814@kylheku.com> <87edjocbqj.fsf@nosuchdomain.example.com>
Lines: 12
Message-ID: <q_1HM.144952$ftCb.122801@fx34.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Mon, 28 Aug 2023 14:15:50 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Mon, 28 Aug 2023 14:15:50 GMT
X-Received-Bytes: 1571
 by: Scott Lurndal - Mon, 28 Aug 2023 14:15 UTC

Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:
>Kaz Kylheku <864-117-4973@kylheku.com> writes:
>[...]
>> If required, positional parameters are going to be callable using named
>> arguments, the named arguments must be a mandatory part of the function
>> definition.
>
>Named arguments are already mandatory for function definitions (barring
>old-style definitions).

Nit, IIRC, you don't need the name if you don't use the parameter.

Re: C vs Haskell for XML parsing

<uciccb$1o58a$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: C vs Haskell for XML parsing
Date: Mon, 28 Aug 2023 15:53:00 +0100
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <uciccb$1o58a$1@dont-email.me>
References: <576801fa-2842-40dc-bf19-221a5b1cf660n@googlegroups.com>
<878r9zeynn.fsf@nosuchdomain.example.com> <AUaGM.174236$JG_b.91752@fx39.iad>
<ucbjph$96fa$1@dont-email.me> <ipdGM.457101$xMqa.238959@fx12.iad>
<uccitk$hhuj$1@dont-email.me> <H2oGM.827787$TPw2.680260@fx17.iad>
<ucd5kt$kl1p$1@dont-email.me> <20230826123929.770@kylheku.com>
<ucdp4i$ot46$1@dont-email.me> <20230826210521.20@kylheku.com>
<ucf86t$14b70$1@dont-email.me> <20230827151627.814@kylheku.com>
<87edjocbqj.fsf@nosuchdomain.example.com> <q_1HM.144952$ftCb.122801@fx34.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 28 Aug 2023 14:53:00 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="144ee3818d970517c8b3d421959835fd";
logging-data="1840394"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX183wVddgH0RL5PFJqXEZPrbHN6rSMU2wSc="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:Zm1zOB0wSyQjg10E9Izmf8drdwA=
In-Reply-To: <q_1HM.144952$ftCb.122801@fx34.iad>
 by: Bart - Mon, 28 Aug 2023 14:53 UTC

On 28/08/2023 15:15, Scott Lurndal wrote:
> Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:
>> Kaz Kylheku <864-117-4973@kylheku.com> writes:
>> [...]
>>> If required, positional parameters are going to be callable using named
>>> arguments, the named arguments must be a mandatory part of the function
>>> definition.
>>
>> Named arguments are already mandatory for function definitions (barring
>> old-style definitions).
>
> Nit, IIRC, you don't need the name if you don't use the parameter.
>

This program:

void F(int,int,int) {}

int main(void) {}

generally results in hard errors in I think 5 out of 6 compilers I
tried. Only gcc on Windows passed it with no comment.

Re: C vs Haskell for XML parsing

<1827bc0b-31e5-49a9-a399-fad1d1062e3en@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ac8:7f89:0:b0:403:aa87:d220 with SMTP id z9-20020ac87f89000000b00403aa87d220mr797320qtj.0.1693237243790;
Mon, 28 Aug 2023 08:40:43 -0700 (PDT)
X-Received: by 2002:a17:902:a416:b0:1c1:f981:a9a7 with SMTP id
p22-20020a170902a41600b001c1f981a9a7mr99393plq.10.1693237243178; Mon, 28 Aug
2023 08:40:43 -0700 (PDT)
Path: i2pn2.org!i2pn.org!newsfeed.endofthelinebbs.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Mon, 28 Aug 2023 08:40:42 -0700 (PDT)
In-Reply-To: <uci2a0$1meat$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:400a:5601:49ab:6c76:d8de:136a;
posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 2a00:23a8:400a:5601:49ab:6c76:d8de:136a
References: <576801fa-2842-40dc-bf19-221a5b1cf660n@googlegroups.com>
<uc2dbv$2e4tg$1@dont-email.me> <d734d616-b18e-4e67-b858-f0eb0a636a87n@googlegroups.com>
<uc2qnl$2gh96$1@dont-email.me> <d651e08e-033d-4a90-8477-6a5fa13d30f3n@googlegroups.com>
<uc4e4t$2rdlt$1@dont-email.me> <1e79f8a1-b707-4074-b272-ce4327ee7bc0n@googlegroups.com>
<uc5dd0$30jrk$1@dont-email.me> <81879984-43e7-409a-a029-1ca6677f536dn@googlegroups.com>
<uc5mlk$32gl3$1@dont-email.me> <8eec8404-4928-4bc3-8b00-c673ea22ab60n@googlegroups.com>
<uc7l4o$3fp72$1@dont-email.me> <639e8e6f-2729-476b-9a6e-0b3eb066b06an@googlegroups.com>
<uc9m7v$3u797$1@dont-email.me> <d3c6df71-7ef5-4fd3-83be-8b9a4315f0c4n@googlegroups.com>
<uca3sh$p9c$1@dont-email.me> <efcf98fa-f078-490c-99fa-5c281cadcebbn@googlegroups.com>
<873505pdw0.fsf@bsb.me.uk> <ucg0lf$18cb9$6@dont-email.me> <87y1hwm3xg.fsf@bsb.me.uk>
<uchp46$1kl9e$2@dont-email.me> <f9e0f800-e704-4a93-b05f-95af343b650fn@googlegroups.com>
<uci2a0$1meat$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1827bc0b-31e5-49a9-a399-fad1d1062e3en@googlegroups.com>
Subject: Re: C vs Haskell for XML parsing
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Mon, 28 Aug 2023 15:40:43 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3003
 by: Malcolm McLean - Mon, 28 Aug 2023 15:40 UTC

On Monday, 28 August 2023 at 13:01:19 UTC+1, David Brown wrote:
>
> So if /I/ were to write "Dennis Ritchie is arguably one of the most
> important original authorities on C, and he supports my points" it would
> be a valid appeal to authority. When /you/ write that he supports
> /your/ ideas, it is a fallacy because - regardless of whether Ritchie's
> thoughts here were right or wrong - he did not support your position.
>
No. You just haven't got it.
The appeal to authority fallacy says "proposition X must be true,
_because_ such and such supports it".
It doesn't matter if such and such is Dennis Ritchie or David Brown.
Or if the person genuinely supports proposition X or not.
Or if the claim is highly controversial or something few people
would disagree with.
The appeal to authority fallacy is the fallacy that a statement is true
because of the identity of the person making it.

Re: C vs Haskell for XML parsing

<20230828092105.938@kylheku.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 864-117-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c
Subject: Re: C vs Haskell for XML parsing
Date: Mon, 28 Aug 2023 16:21:44 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <20230828092105.938@kylheku.com>
References: <576801fa-2842-40dc-bf19-221a5b1cf660n@googlegroups.com>
<81879984-43e7-409a-a029-1ca6677f536dn@googlegroups.com>
<uc5mlk$32gl3$1@dont-email.me>
<8eec8404-4928-4bc3-8b00-c673ea22ab60n@googlegroups.com>
<uc7l4o$3fp72$1@dont-email.me>
<639e8e6f-2729-476b-9a6e-0b3eb066b06an@googlegroups.com>
<uc9m7v$3u797$1@dont-email.me>
<d3c6df71-7ef5-4fd3-83be-8b9a4315f0c4n@googlegroups.com>
<87h6onfje9.fsf@nosuchdomain.example.com>
<66653005-66fa-4a89-8b1f-0b415fb7e8ean@googlegroups.com>
<yJnGM.142651$ftCb.40495@fx34.iad>
<03a4b2f0-92a7-4652-86f6-66f7d5cf8853n@googlegroups.com>
<ucg9ou$1a678$1@dont-email.me>
<24081c60-e8eb-467d-a5e2-3ac05104b03en@googlegroups.com>
Injection-Date: Mon, 28 Aug 2023 16:21:44 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="10c6d898fd3a93281822b96d674293f3";
logging-data="1873391"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+4c52JsLqgDrCJPwPyybl/VnOgG0W5K2k="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:95aPkA9+gstG2VWrXO++nJ7vKkA=
 by: Kaz Kylheku - Mon, 28 Aug 2023 16:21 UTC

On 2023-08-28, Malcolm McLean <malcolm.arthur.mclean@gmail.com> wrote:
> Scriptio Continua was used for about 2,000 years. So it's not difficult to read.

Say, what proportion of the populade was literate over that period?

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Re: C vs Haskell for XML parsing

<20230828092201.893@kylheku.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 864-117-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c
Subject: Re: C vs Haskell for XML parsing
Date: Mon, 28 Aug 2023 16:35:49 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <20230828092201.893@kylheku.com>
References: <576801fa-2842-40dc-bf19-221a5b1cf660n@googlegroups.com>
<81879984-43e7-409a-a029-1ca6677f536dn@googlegroups.com>
<uc5mlk$32gl3$1@dont-email.me>
<8eec8404-4928-4bc3-8b00-c673ea22ab60n@googlegroups.com>
<uc7l4o$3fp72$1@dont-email.me>
<639e8e6f-2729-476b-9a6e-0b3eb066b06an@googlegroups.com>
<uc9m7v$3u797$1@dont-email.me>
<d3c6df71-7ef5-4fd3-83be-8b9a4315f0c4n@googlegroups.com>
<87h6onfje9.fsf@nosuchdomain.example.com>
<66653005-66fa-4a89-8b1f-0b415fb7e8ean@googlegroups.com>
<yJnGM.142651$ftCb.40495@fx34.iad>
<03a4b2f0-92a7-4652-86f6-66f7d5cf8853n@googlegroups.com>
<ucg9ou$1a678$1@dont-email.me>
<24081c60-e8eb-467d-a5e2-3ac05104b03en@googlegroups.com>
<uchmgi$1kdo7$1@dont-email.me>
<ac994d20-9887-4f93-a9e2-ed78224a91can@googlegroups.com>
<uci0fa$1m3b3$1@dont-email.me>
Injection-Date: Mon, 28 Aug 2023 16:35:49 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="10c6d898fd3a93281822b96d674293f3";
logging-data="1878686"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19VFnZIWROhHNsdxhMOeHrxsiI7Cd0MF5s="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:Ywvkc0vlT3MsYOwTnLm2lrokxDU=
 by: Kaz Kylheku - Mon, 28 Aug 2023 16:35 UTC

On 2023-08-28, David Brown <david.brown@hesbynett.no> wrote:
> On 28/08/2023 11:03, Malcolm McLean wrote:
>> On Monday, 28 August 2023 at 09:40:00 UTC+1, David Brown wrote:
>>> On 28/08/2023 09:42, Malcolm McLean wrote:
>>>
>>>> People work out complex
>>>> and rather tendentious theories about why the ancients used Scriptio Continua
>>>> and moderns use text separated by spaces.
>>>>
>>> Yes - people that are a lot smarter and more knowledgable than you, and
>>> that don't have some bizarre agenda to try to "prove" that their unique
>>> and illegible naming style is somehow better than what everyone else uses.
>>>
>>>> You need to understand the strength of the simple, obvious argument, before you
>>>> try to snipe at it with sophisticated objections.
>>>>
>>>
>> A simple, straightforwards, obvious and natural point takes priority.
>
> Do you agree that word break indication makes text easier to read?

The Japanese do. Books for small children have word breaks.

In reading grownup Japanese, there are situations in which you have to
hypothesize one of two or possibly more word boundaries to see which way
it makes sense, based on your vocabulary. It doesn't help that Japanese
has a large number of homonyms and situations in which words are
fragments of unrelated words. Kanji helps in this regard; Japanese
written out in kana with no spaces is more brutal.

In the history of Fortran, the most idiotic thing was removing spaces
before tokenizing it, resulting in the "famous" fact that
DOI=1,10 must be parsed as the DO I = 1, 10 head of a loop.

> This means that in at least some cases, the use of continuous text was
> motivated by factors that outweighed legibility - perhaps costs, perhaps
> intentionally making the text harder to read.

Like, maybe, keeping the illiterate rabble illiterate, maintaining the
status quo that only a tiny elite can read and write?

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Re: C vs Haskell for XML parsing

<uciinp$1p8qk$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: C vs Haskell for XML parsing
Date: Mon, 28 Aug 2023 18:41:29 +0200
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <uciinp$1p8qk$1@dont-email.me>
References: <576801fa-2842-40dc-bf19-221a5b1cf660n@googlegroups.com>
<878r9zeynn.fsf@nosuchdomain.example.com> <AUaGM.174236$JG_b.91752@fx39.iad>
<ucbjph$96fa$1@dont-email.me> <ipdGM.457101$xMqa.238959@fx12.iad>
<uccitk$hhuj$1@dont-email.me> <H2oGM.827787$TPw2.680260@fx17.iad>
<ucd5kt$kl1p$1@dont-email.me> <20230826123929.770@kylheku.com>
<ucdp4i$ot46$1@dont-email.me> <20230826210521.20@kylheku.com>
<ucf86t$14b70$1@dont-email.me> <20230827151627.814@kylheku.com>
<87edjocbqj.fsf@nosuchdomain.example.com> <q_1HM.144952$ftCb.122801@fx34.iad>
<uciccb$1o58a$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 28 Aug 2023 16:41:29 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e81667950acd893cb93e6800794cb322";
logging-data="1876820"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/nFQj59kZAZBe+9oKht4kIvABMnyDlX1M="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.9.0
Cancel-Lock: sha1:paRkI/OR0cin0jbCxgLsYv+urmA=
In-Reply-To: <uciccb$1o58a$1@dont-email.me>
Content-Language: en-GB
 by: David Brown - Mon, 28 Aug 2023 16:41 UTC

On 28/08/2023 16:53, Bart wrote:
> On 28/08/2023 15:15, Scott Lurndal wrote:
>> Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:
>>> Kaz Kylheku <864-117-4973@kylheku.com> writes:
>>> [...]
>>>> If required, positional parameters are going to be callable using named
>>>> arguments, the named arguments must be a mandatory part of the function
>>>> definition.
>>>
>>> Named arguments are already mandatory for function definitions (barring
>>> old-style definitions).
>>
>> Nit, IIRC, you don't need the name if you don't use the parameter.

That's true in C++, but not true in C until C2x comes out.

>>
>
> This program:
>
>    void F(int,int,int) {}
>
>    int main(void) {}
>
> generally results in hard errors in I think 5 out of 6 compilers I
> tried. Only gcc on Windows passed it with no comment.

As you know, gcc does not try to be accurately conforming to the
standards unless you give it appropriate command line flags. In
particular, it tends to be lax in accepting some syntax from later C
standards (and occasionally C++), as long as there is no conflict with
valid code of the specified (or default) standard. So gcc accepts this
because C2x will allow it, or because C++ allows it, and it is a simple
and obvious extension.

If you don't like that, you know what flags to give gcc to get the
standards-required diagnostic. (The standards do not require a "hard
error". For some kinds of mistakes in code, I would agree with you that
a hard error would be far better than a warning or silently accepting
the code by default - but in this case, a hard error is an overreaction
unless you want to enforce very strict checking.)

Re: C vs Haskell for XML parsing

<uciju2$1pkgn$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: C vs Haskell for XML parsing
Date: Mon, 28 Aug 2023 18:01:54 +0100
Organization: A noiseless patient Spider
Lines: 84
Message-ID: <uciju2$1pkgn$1@dont-email.me>
References: <576801fa-2842-40dc-bf19-221a5b1cf660n@googlegroups.com>
<878r9zeynn.fsf@nosuchdomain.example.com> <AUaGM.174236$JG_b.91752@fx39.iad>
<ucbjph$96fa$1@dont-email.me> <ipdGM.457101$xMqa.238959@fx12.iad>
<uccitk$hhuj$1@dont-email.me> <H2oGM.827787$TPw2.680260@fx17.iad>
<ucd5kt$kl1p$1@dont-email.me> <20230826123929.770@kylheku.com>
<ucdp4i$ot46$1@dont-email.me> <20230826210521.20@kylheku.com>
<ucf86t$14b70$1@dont-email.me> <20230827151627.814@kylheku.com>
<87edjocbqj.fsf@nosuchdomain.example.com> <q_1HM.144952$ftCb.122801@fx34.iad>
<uciccb$1o58a$1@dont-email.me> <uciinp$1p8qk$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 28 Aug 2023 17:01:54 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="144ee3818d970517c8b3d421959835fd";
logging-data="1888791"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19xo628H4oK0YztZJdu2qCdEFZ9lQqN7LI="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:4FT9iQsjntNJeQJp0Lf++B6FGxI=
In-Reply-To: <uciinp$1p8qk$1@dont-email.me>
 by: Bart - Mon, 28 Aug 2023 17:01 UTC

On 28/08/2023 17:41, David Brown wrote:
> On 28/08/2023 16:53, Bart wrote:
>> On 28/08/2023 15:15, Scott Lurndal wrote:
>>> Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:
>>>> Kaz Kylheku <864-117-4973@kylheku.com> writes:
>>>> [...]
>>>>> If required, positional parameters are going to be callable using
>>>>> named
>>>>> arguments, the named arguments must be a mandatory part of the
>>>>> function
>>>>> definition.
>>>>
>>>> Named arguments are already mandatory for function definitions (barring
>>>> old-style definitions).
>>>
>>> Nit, IIRC, you don't need the name if you don't use the parameter.
>
> That's true in C++, but not true in C until C2x comes out.

Why is the standard moving backwards?

>
>>>
>>
>> This program:
>>
>>     void F(int,int,int) {}
>>
>>     int main(void) {}
>>
>> generally results in hard errors in I think 5 out of 6 compilers I
>> tried. Only gcc on Windows passed it with no comment.
>
> As you know, gcc does not try to be accurately conforming to the
> standards unless you give it appropriate command line flags.

'gcc c.c' on Windows (13.2.0) passed it; 'gcc c.c' on WSL (9.4.0)
failed it.

I've given up trying to make sense of gcc's behaviour. WHATEVER it does
or doesn't do, even when it contradicts itself, people will always find
an excuse for it.

But this one is unusual: normally newer gcc tries to continue passing
legacy code that older versions passed. Now, it can be passing code that
older versions *failed*.

gcc appears to be doing a passing (no pun) imitation of Trump: no matter
what crazy stuff it does, people like it all the more!

It will please people when it does X instead of Y, and please those who
want it to do Y when it does Y instead of X, and it will please those
who like the 'flexibility' of it being able to either X or Y.

Any complaints about the behaviour, Oh, you can just add these
half-dozen obscure options to give the correct behaviour, which of
course you already knew about in advance, to join the other 200 weird
behaviours.

The fact that you're then dividing C into two languages: C which allows
parameter names to be omitted from definitions, and C which doesn't, is
of no consequences. So you end up define one of 2**N dialects where N is
the number of behaviour-altering options. What language are you
programming in, again?

> If you don't like that, you know what flags to give gcc to get the
> standards-required diagnostic.

As I said...

>  (The standards do not require a "hard
> error".  For some kinds of mistakes in code, I would agree with you that
> a hard error would be far better than a warning or silently accepting
> the code by default - but in this case, a hard error is an overreaction
> unless you want to enforce very strict checking.)

In this case, the rule can very simple: each parameter name in a
definiton MUST be named.

(Accidentally delete a parameter name 'abc', and it's possible that a
reference to that parameter in the function now matches a global 'abc'.)

Re: C vs Haskell for XML parsing

<5b5e698f-8646-4195-9032-e49895a285efn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:1904:b0:412:1df:9b2d with SMTP id w4-20020a05622a190400b0041201df9b2dmr641560qtc.1.1693242314206;
Mon, 28 Aug 2023 10:05:14 -0700 (PDT)
X-Received: by 2002:a05:620a:240c:b0:76d:7a5f:5f04 with SMTP id
d12-20020a05620a240c00b0076d7a5f5f04mr958616qkn.1.1693242313948; Mon, 28 Aug
2023 10:05:13 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!newsfeed.hasname.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Mon, 28 Aug 2023 10:05:13 -0700 (PDT)
In-Reply-To: <20230828092105.938@kylheku.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:400a:5601:49ab:6c76:d8de:136a;
posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 2a00:23a8:400a:5601:49ab:6c76:d8de:136a
References: <576801fa-2842-40dc-bf19-221a5b1cf660n@googlegroups.com>
<81879984-43e7-409a-a029-1ca6677f536dn@googlegroups.com> <uc5mlk$32gl3$1@dont-email.me>
<8eec8404-4928-4bc3-8b00-c673ea22ab60n@googlegroups.com> <uc7l4o$3fp72$1@dont-email.me>
<639e8e6f-2729-476b-9a6e-0b3eb066b06an@googlegroups.com> <uc9m7v$3u797$1@dont-email.me>
<d3c6df71-7ef5-4fd3-83be-8b9a4315f0c4n@googlegroups.com> <87h6onfje9.fsf@nosuchdomain.example.com>
<66653005-66fa-4a89-8b1f-0b415fb7e8ean@googlegroups.com> <yJnGM.142651$ftCb.40495@fx34.iad>
<03a4b2f0-92a7-4652-86f6-66f7d5cf8853n@googlegroups.com> <ucg9ou$1a678$1@dont-email.me>
<24081c60-e8eb-467d-a5e2-3ac05104b03en@googlegroups.com> <20230828092105.938@kylheku.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5b5e698f-8646-4195-9032-e49895a285efn@googlegroups.com>
Subject: Re: C vs Haskell for XML parsing
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Mon, 28 Aug 2023 17:05:14 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2718
 by: Malcolm McLean - Mon, 28 Aug 2023 17:05 UTC

On Monday, 28 August 2023 at 17:21:58 UTC+1, Kaz Kylheku wrote:
> On 2023-08-28, Malcolm McLean <malcolm.ar...@gmail.com> wrote:
> > Scriptio Continua was used for about 2,000 years. So it's not difficult to read.
> Say, what proportion of the populade was literate over that period?
>
Very low. Which is probably part of the reason. Most people either couldn't read
and write at all, or were professionals whose job it was to work with books.

When in the late Middle Ages knights and merchants and similar people began
to become literate, but were occasional readers and writers rather than doing it
full time, then it would have been more important that text was easy to read.

But the point I was making was that whilst professional readers might have
tolerated a bit of extra difficulty, they wouldn't have tolerated text which was
very difficult to read, for a period of 2000 years.

Re: C vs Haskell for XML parsing

<72888dce-6d26-49bc-a911-95f87a039d19n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:14e:b0:403:a627:8b79 with SMTP id v14-20020a05622a014e00b00403a6278b79mr872525qtw.13.1693242686866;
Mon, 28 Aug 2023 10:11:26 -0700 (PDT)
X-Received: by 2002:a17:90a:d30e:b0:269:4286:3496 with SMTP id
p14-20020a17090ad30e00b0026942863496mr5541150pju.9.1693242686412; Mon, 28 Aug
2023 10:11:26 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Mon, 28 Aug 2023 10:11:25 -0700 (PDT)
In-Reply-To: <20230828092201.893@kylheku.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:400a:5601:49ab:6c76:d8de:136a;
posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 2a00:23a8:400a:5601:49ab:6c76:d8de:136a
References: <576801fa-2842-40dc-bf19-221a5b1cf660n@googlegroups.com>
<81879984-43e7-409a-a029-1ca6677f536dn@googlegroups.com> <uc5mlk$32gl3$1@dont-email.me>
<8eec8404-4928-4bc3-8b00-c673ea22ab60n@googlegroups.com> <uc7l4o$3fp72$1@dont-email.me>
<639e8e6f-2729-476b-9a6e-0b3eb066b06an@googlegroups.com> <uc9m7v$3u797$1@dont-email.me>
<d3c6df71-7ef5-4fd3-83be-8b9a4315f0c4n@googlegroups.com> <87h6onfje9.fsf@nosuchdomain.example.com>
<66653005-66fa-4a89-8b1f-0b415fb7e8ean@googlegroups.com> <yJnGM.142651$ftCb.40495@fx34.iad>
<03a4b2f0-92a7-4652-86f6-66f7d5cf8853n@googlegroups.com> <ucg9ou$1a678$1@dont-email.me>
<24081c60-e8eb-467d-a5e2-3ac05104b03en@googlegroups.com> <uchmgi$1kdo7$1@dont-email.me>
<ac994d20-9887-4f93-a9e2-ed78224a91can@googlegroups.com> <uci0fa$1m3b3$1@dont-email.me>
<20230828092201.893@kylheku.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <72888dce-6d26-49bc-a911-95f87a039d19n@googlegroups.com>
Subject: Re: C vs Haskell for XML parsing
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Mon, 28 Aug 2023 17:11:26 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2666
 by: Malcolm McLean - Mon, 28 Aug 2023 17:11 UTC

On Monday, 28 August 2023 at 17:36:03 UTC+1, Kaz Kylheku wrote:
>
> > This means that in at least some cases, the use of continuous text was
> > motivated by factors that outweighed legibility - perhaps costs, perhaps
> > intentionally making the text harder to read.
> Like, maybe, keeping the illiterate rabble illiterate, maintaining the
> status quo that only a tiny elite can read and write?
>
Very implausible. It takes non-trivial education to teach people to.read and write,
even with modern printed texts with spacing. Illiteracy rates are a scandal.

The motive to raise the barrier even higher would have been very low. You
just don't provide schools for the rabble, if you wish to keep them illiterate.

Re: C vs Haskell for XML parsing

<ucim5r$1pvn0$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: C vs Haskell for XML parsing
Date: Mon, 28 Aug 2023 19:40:11 +0200
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <ucim5r$1pvn0$1@dont-email.me>
References: <576801fa-2842-40dc-bf19-221a5b1cf660n@googlegroups.com>
<81879984-43e7-409a-a029-1ca6677f536dn@googlegroups.com>
<uc5mlk$32gl3$1@dont-email.me>
<8eec8404-4928-4bc3-8b00-c673ea22ab60n@googlegroups.com>
<uc7l4o$3fp72$1@dont-email.me>
<639e8e6f-2729-476b-9a6e-0b3eb066b06an@googlegroups.com>
<uc9m7v$3u797$1@dont-email.me>
<d3c6df71-7ef5-4fd3-83be-8b9a4315f0c4n@googlegroups.com>
<87h6onfje9.fsf@nosuchdomain.example.com>
<66653005-66fa-4a89-8b1f-0b415fb7e8ean@googlegroups.com>
<yJnGM.142651$ftCb.40495@fx34.iad>
<03a4b2f0-92a7-4652-86f6-66f7d5cf8853n@googlegroups.com>
<ucg9ou$1a678$1@dont-email.me>
<24081c60-e8eb-467d-a5e2-3ac05104b03en@googlegroups.com>
<uchmgi$1kdo7$1@dont-email.me>
<ac994d20-9887-4f93-a9e2-ed78224a91can@googlegroups.com>
<uci0fa$1m3b3$1@dont-email.me> <20230828092201.893@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 28 Aug 2023 17:40:11 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="5b74ece49dc88b59e186868c281fd7d0";
logging-data="1900256"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/mcCv28cDuWiLVzdbnMCLD6GPrJ27Ei7Y="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:tiFzvWJrOvLfvHxrevdgoY9toKY=
In-Reply-To: <20230828092201.893@kylheku.com>
Content-Language: en-GB
 by: David Brown - Mon, 28 Aug 2023 17:40 UTC

On 28/08/2023 18:35, Kaz Kylheku wrote:
> On 2023-08-28, David Brown <david.brown@hesbynett.no> wrote:

>> This means that in at least some cases, the use of continuous text was
>> motivated by factors that outweighed legibility - perhaps costs, perhaps
>> intentionally making the text harder to read.
>
> Like, maybe, keeping the illiterate rabble illiterate, maintaining the
> status quo that only a tiny elite can read and write?
>

Yes. Writing without spaces isn't much harder than writing with spaces,
but reading it is a lot harder. As a member of the elite, you don't
want reading to be easier for others.

Even within the elite classes, your ability to read unspaced texts
quickly (or, more often, your ability to afford a scribe who could read
it) was a status symbol. It was like serving larks' tongues at dinner -
you don't do it because they are tasty or nutritious, you do it because
they are expensive.

I don't think anyone can say how much of an influence such reasons were,
but it is certainly one of several reasons given by historians.

Re: C vs Haskell for XML parsing

<ucine0$1q9jg$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: C vs Haskell for XML parsing
Date: Mon, 28 Aug 2023 20:01:35 +0200
Organization: A noiseless patient Spider
Lines: 138
Message-ID: <ucine0$1q9jg$1@dont-email.me>
References: <576801fa-2842-40dc-bf19-221a5b1cf660n@googlegroups.com>
<878r9zeynn.fsf@nosuchdomain.example.com> <AUaGM.174236$JG_b.91752@fx39.iad>
<ucbjph$96fa$1@dont-email.me> <ipdGM.457101$xMqa.238959@fx12.iad>
<uccitk$hhuj$1@dont-email.me> <H2oGM.827787$TPw2.680260@fx17.iad>
<ucd5kt$kl1p$1@dont-email.me> <20230826123929.770@kylheku.com>
<ucdp4i$ot46$1@dont-email.me> <20230826210521.20@kylheku.com>
<ucf86t$14b70$1@dont-email.me> <20230827151627.814@kylheku.com>
<87edjocbqj.fsf@nosuchdomain.example.com> <q_1HM.144952$ftCb.122801@fx34.iad>
<uciccb$1o58a$1@dont-email.me> <uciinp$1p8qk$1@dont-email.me>
<uciju2$1pkgn$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 28 Aug 2023 18:01:36 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="5b74ece49dc88b59e186868c281fd7d0";
logging-data="1910384"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187cPjQgACOr8JqGdx22WAdk74nFt34mJ8="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:HedeK/QaRZ8p8/x88elSBdLkzzE=
In-Reply-To: <uciju2$1pkgn$1@dont-email.me>
Content-Language: en-GB
 by: David Brown - Mon, 28 Aug 2023 18:01 UTC

On 28/08/2023 19:01, Bart wrote:
> On 28/08/2023 17:41, David Brown wrote:
>> On 28/08/2023 16:53, Bart wrote:
>>> On 28/08/2023 15:15, Scott Lurndal wrote:
>>>> Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:
>>>>> Kaz Kylheku <864-117-4973@kylheku.com> writes:
>>>>> [...]
>>>>>> If required, positional parameters are going to be callable using
>>>>>> named
>>>>>> arguments, the named arguments must be a mandatory part of the
>>>>>> function
>>>>>> definition.
>>>>>
>>>>> Named arguments are already mandatory for function definitions
>>>>> (barring
>>>>> old-style definitions).
>>>>
>>>> Nit, IIRC, you don't need the name if you don't use the parameter.
>>
>> That's true in C++, but not true in C until C2x comes out.
>
> Why is the standard moving backwards?

What do you mean?

C2x allows you to omit names for parameters you don't use in a function
definition. How is that "moving backwards" ? You still need the proper
prototype, and you still need to include the arguments when calling the
function.

It is not uncommon to have compiler warnings on unused variables and
parameters - if a function takes a parameter, and the definition does
not use it somehow, then it's likely there's a mistake somewhere. But
that is not always the case, so such warnings have relatively high false
positive rates, and then you have to have explicit indication that the
parameter is intentionally unused. That's not a bad idea from the point
of view of documenting what the code is doing, but an alternative option
in C++, and now in C2x, is to simply omit a name for the parameter.
(Whether you like that or not is a matter of opinion, and you can use
the feature or ignore it.)

>
>
>>
>>>>
>>>
>>> This program:
>>>
>>>     void F(int,int,int) {}
>>>
>>>     int main(void) {}
>>>
>>> generally results in hard errors in I think 5 out of 6 compilers I
>>> tried. Only gcc on Windows passed it with no comment.
>>
>> As you know, gcc does not try to be accurately conforming to the
>> standards unless you give it appropriate command line flags.
>
>  'gcc c.c' on Windows (13.2.0) passed it; 'gcc c.c' on WSL (9.4.0)
> failed it.

That does not surprise me. Newer gcc has support for some parts of C2x,
older gcc does not.

>
> I've given up trying to make sense of gcc's behaviour. WHATEVER it does
> or doesn't do, even when it contradicts itself, people will always find
> an excuse for it.

OK. Maybe I should stop trying to explain it to you? (Note that
explaining why gcc does something is not the same thing as making an
excuse for it, or liking it. I personally would prefer if it followed
the standards more strictly by default.)

>
> But this one is unusual: normally newer gcc tries to continue passing
> legacy code that older versions passed. Now, it can be passing code that
> older versions *failed*.

And the problem with that is... what? Nothing, as far as I can see.

It can be a problem if old code used to work with older gcc and fails to
work with newer gcc. But it's not a problem if something works on newer
gcc and fails on older gcc - that's entirely natural with new versions
of tools.

>
>> If you don't like that, you know what flags to give gcc to get the
>> standards-required diagnostic.
>
> As I said...

You didn't say anything related to that.

>
>>   (The standards do not require a "hard error".  For some kinds of
>> mistakes in code, I would agree with you that a hard error would be
>> far better than a warning or silently accepting the code by default -
>> but in this case, a hard error is an overreaction unless you want to
>> enforce very strict checking.)
>
> In this case, the rule can very simple: each parameter name in a
> definiton MUST be named.

That's certainly a simple rule.

But is it a useful rule? I can't see it being particularly important.

If anything, I'd prefer a rule saying parameter names were necessary in
declarations - that's the bit seen by people using the function.
Parameter names for unused parameters in a function definition add very
little to the code.

>
> (Accidentally delete a parameter name 'abc', and it's possible that a
> reference to that parameter in the function now matches a global 'abc'.)
>

That's a conceivable reason, yes. But is it likely? You'd have to
accidentally delete a bit of your code - accidentally deleting bits of
your code can always have adverse effects, no matter what. That's why
we have keyboard shortcuts for saving files often, undo features for
when you've made such a mistake, and "commit often" policies for source
code control. And how often do your parameter names shadow global
identifiers? Rarely, I would say, in well-written code (though it
certainly /can/ happen). And of course the shadowed identifier would
have to be of an appropriate type.

Note that C++ has had this feature for decades - I've never heard anyone
complain about it. (And people complain about C++ a /lot/.)

I think there are many things that are more likely to be errors in code.

(And I am confident that there are other things in C2x that you will
dislike far more than this. C2x has so many new features that I think
you'll be hard pushed to find someone who likes them all.)

Re: C vs Haskell for XML parsing

<ucirmk$1r066$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: C vs Haskell for XML parsing
Date: Mon, 28 Aug 2023 20:14:28 +0100
Organization: A noiseless patient Spider
Lines: 94
Message-ID: <ucirmk$1r066$1@dont-email.me>
References: <576801fa-2842-40dc-bf19-221a5b1cf660n@googlegroups.com>
<878r9zeynn.fsf@nosuchdomain.example.com> <AUaGM.174236$JG_b.91752@fx39.iad>
<ucbjph$96fa$1@dont-email.me> <ipdGM.457101$xMqa.238959@fx12.iad>
<uccitk$hhuj$1@dont-email.me> <H2oGM.827787$TPw2.680260@fx17.iad>
<ucd5kt$kl1p$1@dont-email.me> <20230826123929.770@kylheku.com>
<ucdp4i$ot46$1@dont-email.me> <20230826210521.20@kylheku.com>
<ucf86t$14b70$1@dont-email.me> <20230827151627.814@kylheku.com>
<87edjocbqj.fsf@nosuchdomain.example.com> <q_1HM.144952$ftCb.122801@fx34.iad>
<uciccb$1o58a$1@dont-email.me> <uciinp$1p8qk$1@dont-email.me>
<uciju2$1pkgn$1@dont-email.me> <ucine0$1q9jg$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 28 Aug 2023 19:14:29 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="144ee3818d970517c8b3d421959835fd";
logging-data="1933510"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18mYkhk6JVqnBlGVnAd+TUVPSQRQ3mbYJI="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:27QyllQ74QENMSncdsAHe9NaM+4=
In-Reply-To: <ucine0$1q9jg$1@dont-email.me>
 by: Bart - Mon, 28 Aug 2023 19:14 UTC

On 28/08/2023 19:01, David Brown wrote:
> On 28/08/2023 19:01, Bart wrote:

>> Why is the standard moving backwards?
>
> What do you mean?
>
> C2x allows you to omit names for parameters you don't use in a function
> definition.  How is that "moving backwards" ?

We want a stricter language moving forward and less of the crazy
flexibility of older versions.

What other missing bits of syntax can we assign some arbitrary meaning
to rather than being called out as obvious errors?

How about, leaving out a function name in a definition, when that
function is not called?

>> But this one is unusual: normally newer gcc tries to continue passing
>> legacy code that older versions passed. Now, it can be passing code
>> that older versions *failed*.
>
> And the problem with that is... what?  Nothing, as far as I can see.

It was an error before for a good reason. Now somebody decided you need
to take away some redundancy so that they can declare unused parameters
without the compiler moaning about it.

So that actual errors, like accidentally missing out a name, are harder
to detect.

There are also lots of reasons for a parameter name not to be used in
some compilations out of dozens or hundreds:

Maybe you've only got as far as writing a skeleton function and not all
params are yet use, or in the middle of writing it, or it's being
changed, or parts are temporarily commented out. It's a WIP!

Yet an overzealous compiler might warn about an unused parameter name.
There must be better ways of shutting it up than deleting the name
completely. So, what was it again, when you decide to use it?

What about declarations? It would be perverse for those to define a name
for a parameter which is not named nor used in the definition (what
would it be called?).

The whole thing has a very bad smell to me.

Using Godbolt, I can see that gcc up to 11.1 failed missing parameter
names. From 11.1 onward, such code passes.

On C, code fails on older versions, and gives warnings from 11.0.0 onwards.

In MSVC, code fails on all versions. So:

Older Newer/current

GCC Fail Pass
Clang Fail Warning
MSVC Fail Fail

bcc --- Fail
tcc --- Fail

Nice to see consistency in a language! All those languages in the final
column are still C. I think.

Of course, a really useful enhancement such as declaring multiple
parameter names under the same shared type doesn't get a look-in:

void F(int a, b, c) {}

> But is it a useful rule?  I can't see it being particularly important.
>
> If anything, I'd prefer a rule saying parameter names were necessary in
> declarations - that's the bit seen by people using the function.
> Parameter names for unused parameters in a function definition add very
> little to the code.

Which, of course, is totally backwards. Most things in this newsgroup are!

Parameter names in declarations are optional: you can take them all out,
and programs would still compile.

Not so with parameter names in definitions.

Actually, I've never across missing parameter names in definitions in
the million lines of code I've passed through my C compiler. Or maybe
everyone has been waiting for 50 years for just that feature.

Re: C vs Haskell for XML parsing

<zy6HM.837180$TPw2.12699@fx17.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx17.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: C vs Haskell for XML parsing
Newsgroups: comp.lang.c
References: <576801fa-2842-40dc-bf19-221a5b1cf660n@googlegroups.com> <ucd5kt$kl1p$1@dont-email.me> <20230826123929.770@kylheku.com> <ucdp4i$ot46$1@dont-email.me> <20230826210521.20@kylheku.com> <ucf86t$14b70$1@dont-email.me> <20230827151627.814@kylheku.com> <87edjocbqj.fsf@nosuchdomain.example.com> <q_1HM.144952$ftCb.122801@fx34.iad> <uciccb$1o58a$1@dont-email.me> <uciinp$1p8qk$1@dont-email.me> <uciju2$1pkgn$1@dont-email.me> <ucine0$1q9jg$1@dont-email.me> <ucirmk$1r066$1@dont-email.me>
Lines: 14
Message-ID: <zy6HM.837180$TPw2.12699@fx17.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Mon, 28 Aug 2023 19:27:27 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Mon, 28 Aug 2023 19:27:27 GMT
X-Received-Bytes: 1460
 by: Scott Lurndal - Mon, 28 Aug 2023 19:27 UTC

Bart <bc@freeuk.com> writes:
>On 28/08/2023 19:01, David Brown wrote:
>> On 28/08/2023 19:01, Bart wrote:
>
>>> Why is the standard moving backwards?
>>
>> What do you mean?
>>
>> C2x allows you to omit names for parameters you don't use in a function
>> definition.  How is that "moving backwards" ?
>
>We want a stricter language moving forward

Are you using the royal "we" here? The plural definite article surely doesn't apply.

Re: C vs Haskell for XML parsing

<bac17518-cf9a-4f43-b86d-c5e468f437d5n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ac8:450d:0:b0:412:7ea:37c9 with SMTP id q13-20020ac8450d000000b0041207ea37c9mr16573qtn.5.1693251084118;
Mon, 28 Aug 2023 12:31:24 -0700 (PDT)
X-Received: by 2002:a17:902:ea04:b0:1b7:c944:edd4 with SMTP id
s4-20020a170902ea0400b001b7c944edd4mr9004335plg.2.1693251083880; Mon, 28 Aug
2023 12:31:23 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Mon, 28 Aug 2023 12:31:23 -0700 (PDT)
In-Reply-To: <ucim5r$1pvn0$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:400a:5601:49ab:6c76:d8de:136a;
posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 2a00:23a8:400a:5601:49ab:6c76:d8de:136a
References: <576801fa-2842-40dc-bf19-221a5b1cf660n@googlegroups.com>
<81879984-43e7-409a-a029-1ca6677f536dn@googlegroups.com> <uc5mlk$32gl3$1@dont-email.me>
<8eec8404-4928-4bc3-8b00-c673ea22ab60n@googlegroups.com> <uc7l4o$3fp72$1@dont-email.me>
<639e8e6f-2729-476b-9a6e-0b3eb066b06an@googlegroups.com> <uc9m7v$3u797$1@dont-email.me>
<d3c6df71-7ef5-4fd3-83be-8b9a4315f0c4n@googlegroups.com> <87h6onfje9.fsf@nosuchdomain.example.com>
<66653005-66fa-4a89-8b1f-0b415fb7e8ean@googlegroups.com> <yJnGM.142651$ftCb.40495@fx34.iad>
<03a4b2f0-92a7-4652-86f6-66f7d5cf8853n@googlegroups.com> <ucg9ou$1a678$1@dont-email.me>
<24081c60-e8eb-467d-a5e2-3ac05104b03en@googlegroups.com> <uchmgi$1kdo7$1@dont-email.me>
<ac994d20-9887-4f93-a9e2-ed78224a91can@googlegroups.com> <uci0fa$1m3b3$1@dont-email.me>
<20230828092201.893@kylheku.com> <ucim5r$1pvn0$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bac17518-cf9a-4f43-b86d-c5e468f437d5n@googlegroups.com>
Subject: Re: C vs Haskell for XML parsing
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Mon, 28 Aug 2023 19:31:24 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3487
 by: Malcolm McLean - Mon, 28 Aug 2023 19:31 UTC

On Monday, 28 August 2023 at 18:40:26 UTC+1, David Brown wrote:
> On 28/08/2023 18:35, Kaz Kylheku wrote:
> > On 2023-08-28, David Brown <david...@hesbynett.no> wrote:
>
> >> This means that in at least some cases, the use of continuous text was
> >> motivated by factors that outweighed legibility - perhaps costs, perhaps
> >> intentionally making the text harder to read.
> >
> > Like, maybe, keeping the illiterate rabble illiterate, maintaining the
> > status quo that only a tiny elite can read and write?
> >
> Yes. Writing without spaces isn't much harder than writing with spaces,
> but reading it is a lot harder. As a member of the elite, you don't
> want reading to be easier for others.
>
> Even within the elite classes, your ability to read unspaced texts
> quickly (or, more often, your ability to afford a scribe who could read
> it) was a status symbol. It was like serving larks' tongues at dinner -
> you don't do it because they are tasty or nutritious, you do it because
> they are expensive.
>
> I don't think anyone can say how much of an influence such reasons were,
> but it is certainly one of several reasons given by historians.
>
And then in the next paragraph, the same people claim that spaces were
omitted to save expensive parchment.
You don't deliberately make things difficult for yourself. These suggestions
are all most implausible.
We don't really know why the Greeks used scriptio continua whilst the Jews
did not. We do know that they did.

Re: C vs Haskell for XML parsing

<ucitv4$1rcba$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: C vs Haskell for XML parsing
Date: Mon, 28 Aug 2023 21:53:07 +0200
Organization: A noiseless patient Spider
Lines: 167
Message-ID: <ucitv4$1rcba$1@dont-email.me>
References: <576801fa-2842-40dc-bf19-221a5b1cf660n@googlegroups.com>
<878r9zeynn.fsf@nosuchdomain.example.com> <AUaGM.174236$JG_b.91752@fx39.iad>
<ucbjph$96fa$1@dont-email.me> <ipdGM.457101$xMqa.238959@fx12.iad>
<uccitk$hhuj$1@dont-email.me> <H2oGM.827787$TPw2.680260@fx17.iad>
<ucd5kt$kl1p$1@dont-email.me> <20230826123929.770@kylheku.com>
<ucdp4i$ot46$1@dont-email.me> <20230826210521.20@kylheku.com>
<ucf86t$14b70$1@dont-email.me> <20230827151627.814@kylheku.com>
<87edjocbqj.fsf@nosuchdomain.example.com> <q_1HM.144952$ftCb.122801@fx34.iad>
<uciccb$1o58a$1@dont-email.me> <uciinp$1p8qk$1@dont-email.me>
<uciju2$1pkgn$1@dont-email.me> <ucine0$1q9jg$1@dont-email.me>
<ucirmk$1r066$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 28 Aug 2023 19:53:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6328b6116e1a02441974fa810d99a92f";
logging-data="1945962"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+QBShYCTONGCZpr14zNdFoQKDgCNpiTdY="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:0Pel8nFOkA5KrFZ0iWgrQmbHAxY=
Content-Language: en-GB
In-Reply-To: <ucirmk$1r066$1@dont-email.me>
 by: David Brown - Mon, 28 Aug 2023 19:53 UTC

On 28/08/2023 21:14, Bart wrote:
> On 28/08/2023 19:01, David Brown wrote:
>> On 28/08/2023 19:01, Bart wrote:
>
>>> Why is the standard moving backwards?
>>
>> What do you mean?
>>
>> C2x allows you to omit names for parameters you don't use in a
>> function definition.  How is that "moving backwards" ?
>
> We want a stricter language moving forward and less of the crazy
> flexibility of older versions.

I am certainly in favour of things that make it easier to find or
prevent errors. And there are certainly some flexibilities in C that
make it easier for some kinds of errors to slip by. (For my own
development, I use a lot of warnings in gcc as a way to limit the
language and reduce possibilities. Many people do this - it is also
popular to adhere to coding standards or style guides.)

However, I really do not see this particular case as a problem.

>
> What other missing bits of syntax can we assign some arbitrary meaning
> to rather than being called out as obvious errors?

Let's stick to the issue at hand.

>
> How about, leaving out a function name in a definition, when that
> function is not called?
>

And let's not go overboard.

We are letting unused parameters be anonymous. Letting unused things be
anonymous is often a good thing - it reduces clutter and saves having to
invent identifiers that are never actually needed. Thus we have
anonymous unions and anonymous structs.

>
>>> But this one is unusual: normally newer gcc tries to continue passing
>>> legacy code that older versions passed. Now, it can be passing code
>>> that older versions *failed*.
>>
>> And the problem with that is... what?  Nothing, as far as I can see.
>
> It was an error before for a good reason. Now somebody decided you need
> to take away some redundancy so that they can declare unused parameters
> without the compiler moaning about it.

Remember we are talking about /unused/ parameters. There was not really
a good reason to require them to have names, and in C2x they won't be
needed.

A typical use-case for this is for call-backs. Call-back function types
often have parameters such as a "void *" user data pointer, or perhaps
parameters for handles or instances (of whatever thing is doing the
call-back). These can be very useful for writing generic call-back
functions that handle many cases. But if you only need one case, you
don't really want parameters at all. Of course you must still declare
the right number and types of parameters in C - those must match.
Omitting the parameter names seems a nice convenience. (Some people
will prefer to have the names anyway, and that's also fine.)

>
> So that actual errors, like accidentally missing out a name, are harder
> to detect.

It is important to detect errors that are likely. It is a lot less
important to detect errors that are very unlikely to be made.

>
> There are also lots of reasons for a parameter name not to be used in
> some compilations out of dozens or hundreds:
>
> Maybe you've only got as far as writing a skeleton function and not all
> params are yet use, or in the middle of writing it, or it's being
> changed, or parts are temporarily commented out. It's a WIP!

Sure. And there is nothing stopping you from including the parameter
name - omission is optional.

>
> Yet an overzealous compiler might warn about an unused parameter name.
> There must be better ways of shutting it up than deleting the name
> completely. So, what was it again, when you decide to use it?

There /are/ other ways of doing it.

A common way, supported by most compilers, is a cast to void :

int foo(int x, int y) {
(void) y; // y is intentionally unused
return x + 1;
}

Compilers also often have their own methods, such as gcc's
"maybe_unused" attribute (others have pragmas, declspecs, or other methods).

If you think it is clearer to use "(void) y" in such a situation, rather
than omitting the parameter name, then write that. I probably will
continue to do so in my own code - it's not a feature I expect to have
much use of personally. But others could well find it neat.

>
>
> What about declarations? It would be perverse for those to define a name
> for a parameter which is not named nor used in the definition (what
> would it be called?).

You don't have to have parameter names in declarations in today's code.
You don't have to have consistency between the names in declarations and
definitions. (You can well say that this is a bad thing - and I'd agree
with you, even though I understand why enforcing consistency would not
be an easy fit with the rest of the language. But whatever your opinion
on this is, you must understand that this is how C is defined.)

Allowing function definitions to omit parameter names lets you be
consistent with declarations that omit parameter names. So it is a win
for consistency.

>
> The whole thing has a very bad smell to me.
>
> Using Godbolt, I can see that gcc up to 11.1 failed missing parameter
> names. From 11.1 onward, such code passes.

Yes, as I explained - this is not a surprise.

(Again, I would have preferred an error, or at least a warning, if the
C2x standard were not explicitly chosen. Don't mistake understanding
for liking.)

>
>> But is it a useful rule?  I can't see it being particularly important.
>>
>> If anything, I'd prefer a rule saying parameter names were necessary
>> in declarations - that's the bit seen by people using the function.
>> Parameter names for unused parameters in a function definition add
>> very little to the code.
>
> Which, of course, is totally backwards. Most things in this newsgroup are!
>
> Parameter names in declarations are optional: you can take them all out,
> and programs would still compile.
>
> Not so with parameter names in definitions.
>
> Actually, I've never across missing parameter names in definitions in
> the million lines of code I've passed through my C compiler. Or maybe
> everyone has been waiting for 50 years for just that feature.
>

Why would you expect to come across missing parameter names in
definitions? They are not legal in C as yet - C2x is not published.
And even after it comes out, you won't expect to see it in much code for
a long time - C programmers are conservative in using new standards.

You'd see it sometimes in C++ code, but obviously that's not something
you'd give to your compiler.

Re: C vs Haskell for XML parsing

<20230828125920.929@kylheku.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 864-117-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c
Subject: Re: C vs Haskell for XML parsing
Date: Mon, 28 Aug 2023 20:37:10 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 228
Message-ID: <20230828125920.929@kylheku.com>
References: <576801fa-2842-40dc-bf19-221a5b1cf660n@googlegroups.com>
<878r9zeynn.fsf@nosuchdomain.example.com>
<AUaGM.174236$JG_b.91752@fx39.iad> <ucbjph$96fa$1@dont-email.me>
<ipdGM.457101$xMqa.238959@fx12.iad> <uccitk$hhuj$1@dont-email.me>
<H2oGM.827787$TPw2.680260@fx17.iad> <ucd5kt$kl1p$1@dont-email.me>
<20230826123929.770@kylheku.com> <ucdp4i$ot46$1@dont-email.me>
<20230826210521.20@kylheku.com> <ucf86t$14b70$1@dont-email.me>
<20230827151627.814@kylheku.com> <87edjocbqj.fsf@nosuchdomain.example.com>
<q_1HM.144952$ftCb.122801@fx34.iad> <uciccb$1o58a$1@dont-email.me>
<uciinp$1p8qk$1@dont-email.me> <uciju2$1pkgn$1@dont-email.me>
<ucine0$1q9jg$1@dont-email.me> <ucirmk$1r066$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 28 Aug 2023 20:37:10 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="10c6d898fd3a93281822b96d674293f3";
logging-data="1959871"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18EWlIwEHjoZ9tORbx1t+03P/xkNrPNwfY="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:pkFSqj/Bsp6xmKGmYumCCQ8FbXI=
 by: Kaz Kylheku - Mon, 28 Aug 2023 20:37 UTC

On 2023-08-28, Bart <bc@freeuk.com> wrote:
> On 28/08/2023 19:01, David Brown wrote:
>> On 28/08/2023 19:01, Bart wrote:
>
>>> Why is the standard moving backwards?
>>
>> What do you mean?
>>
>> C2x allows you to omit names for parameters you don't use in a function
>> definition.  How is that "moving backwards" ?
>
> We want a stricter language moving forward and less of the crazy
> flexibility of older versions.

What?

> What other missing bits of syntax can we assign some arbitrary meaning
> to rather than being called out as obvious errors?
>
> How about, leaving out a function name in a definition, when that
> function is not called?

Yes, that is possible with this same feature:

void foo_api_bar_impl(int arg, void (*)(char *))
{ // ...
}

This bar implementation of the foo API found that it didn't need to
store or call the function pointer parameter, so it didn't name it.

In C++ implementations, this feature suppresses warnings about unused
parameters. If it's not used, but not named, then there is nothing to
complain about.

C++ based this on *existing* syntax in ANSI C: namely that in an ANSI C
prototype declaration, parameter names can be omitted.

C++ just allowed that syntax in definitions, which looks like a
miniscule extension that has as a palpable impact on usability.

C programmers have wasted lines of code on things like

void foo_api_bar_impl(int arg, void (*fn)(char *))
{ UNUSED(fn); // this project's own unused macro
}

>>> But this one is unusual: normally newer gcc tries to continue passing
>>> legacy code that older versions passed. Now, it can be passing code
>>> that older versions *failed*.
>>
>> And the problem with that is... what?  Nothing, as far as I can see.
>
> It was an error before for a good reason. Now somebody decided you need
> to take away some redundancy so that they can declare unused parameters
> without the compiler moaning about it.

C++ has had this feature for decades. Adopting it into C improves the
range of compatibility between the languages.

The "void *" type came from C++; if ANSI C hadn't adopted it, that would
have been a major rift. It's not adopted in the same form though;
C is more loose in conversion from void *.

ANSI C invented the (void) parameter list; in C++ it was just ().
C++ doesn't support old-style unprototyped declarations, so it doesn't
need this. Yet, C++ implemented (void) for compatibility.

Compatibility matters. Less work when preparting a header file usable
in C and C++. Less work converting C code to C++.

> So that actual errors, like accidentally missing out a name, are harder
> to detect.

Accidentally missing a name makes itself loudly heard when you use
the name and it's not defined.

You could have a bug whereby it is defined, but in an outer scope;
that's too bad for you.

Since standard C doesn't have nested functions, that would have to be a
clash between a intended/forgotten local and global, which indicates
that you're using a local-like naming scheme for globals.

> There are also lots of reasons for a parameter name not to be used in
> some compilations out of dozens or hundreds:
>
> Maybe you've only got as far as writing a skeleton function and not all
> params are yet use, or in the middle of writing it, or it's being
> changed, or parts are temporarily commented out. It's a WIP!

If you think you will use the parameters, you will likely put in
their names and live with the unused diagnostics which remind you
to complete the work.

> Yet an overzealous compiler might warn about an unused parameter name.

This is not overzealous. Diagnosis of unused lexical variables uncovers
bugs. You want this in any language with lexical scopes, and to be on by
default.

I added it to TXR Lisp not long ago.

Only the compiler warns about it, not the interpreter.

Both warn about an unbound variable.

No peep out of interpreter:

1> (let (x))
nil

Intepreter warns about y before running code, then the error
happens:

2> (let (x) y)
** expr-2:1: warning: unbound variable y
** expr-2:1: unbound variable y

Compiler warns about unused x and undefined y, but generates code.

3> (compile-toplevel '(let (x) y))
** expr-3:1: warning: unbound variable y
** expr-3:1: warning: let: variable x unused
#<sys:vm-desc: 8b9e5c0>

Code bombs when run:

4> [*3]
** expr-2:1: variable y is not defined

Unused variables are code smell which can indicate an actual
bug like: (defun add (x y) (+ x x)).

Sometimes unused variables are just crumbs left after refactoring;
it's good to clean them out.

> There must be better ways of shutting it up than deleting the name
> completely. So, what was it again, when you decide to use it?

If the option is available in the syntax, there is nothing better.

All else being equal, subtracting a token to achieve a goal is
better than adding more tokens.

> What about declarations? It would be perverse for those to define a name
> for a parameter which is not named nor used in the definition (what
> would it be called?).

No it wouldn't.

The declaration might be like this:

void foo_api_register_bar_callback(void *context,
void (*callback_fn)(void *context,
void *buffer,
size_t size));

You're implementing the callback and find you don't need a context:

void my_bar_callback(void *, void *buffer, size_t size)
{
}

Just because you don't need that parameter in your implementation of the
callback doesn't mean that the master declaration for it should omit the
name, too. The naming (assuming it does not lie) tells us that the
context parameter that will be passed to the callback is that one that
is passed to the registration function.

Obviously, you lack experience in C and C++, due to working in other
things, but you have a lot of opinions.

> On C, code fails on older versions, and gives warnings from 11.0.0 onwards.
>
> In MSVC, code fails on all versions. So:
>
> Older Newer/current
>
> GCC Fail Pass
> Clang Fail Warning
> MSVC Fail Fail
>
> bcc --- Fail
> tcc --- Fail
>
> Nice to see consistency in a language! All those languages in the final
> column are still C. I think.

They are a newer dialect of C. Obviously, you can't use the feature
if your code has to work with older compilers (that are not C++).

C is fragmented into numerous dialects with each new revision of
the language.

So is anything you've written yourself.

Any change you make to a language, whether an ISO-standard definition,
or your own project, means that something works no that won't work
with yesterday's version.

Every real, functional change is testable by a test case which fails if
the change is absent and passes when the change is present.
(If you can't write such a test for a change, it must be some
refactoring or code cleanup.)

For a language, that test case is a piece of code that is not supported
by the version of the language before the change.

Every commit that you make like this splinters the dialect into
before that commit and after.

> Actually, I've never across missing parameter names in definitions in
> the million lines of code I've passed through my C compiler. Or maybe
> everyone has been waiting for 50 years for just that feature.

Yes; it's a bleeding-edge feature, so you wouldn't have encountered
that. If you'd supported a million lines of C++, you probably would
have.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Re: C vs Haskell for XML parsing

<ucj0m0$1rpih$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: C vs Haskell for XML parsing
Date: Mon, 28 Aug 2023 22:39:28 +0200
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <ucj0m0$1rpih$1@dont-email.me>
References: <576801fa-2842-40dc-bf19-221a5b1cf660n@googlegroups.com>
<81879984-43e7-409a-a029-1ca6677f536dn@googlegroups.com>
<uc5mlk$32gl3$1@dont-email.me>
<8eec8404-4928-4bc3-8b00-c673ea22ab60n@googlegroups.com>
<uc7l4o$3fp72$1@dont-email.me>
<639e8e6f-2729-476b-9a6e-0b3eb066b06an@googlegroups.com>
<uc9m7v$3u797$1@dont-email.me>
<d3c6df71-7ef5-4fd3-83be-8b9a4315f0c4n@googlegroups.com>
<87h6onfje9.fsf@nosuchdomain.example.com>
<66653005-66fa-4a89-8b1f-0b415fb7e8ean@googlegroups.com>
<yJnGM.142651$ftCb.40495@fx34.iad>
<03a4b2f0-92a7-4652-86f6-66f7d5cf8853n@googlegroups.com>
<ucg9ou$1a678$1@dont-email.me>
<24081c60-e8eb-467d-a5e2-3ac05104b03en@googlegroups.com>
<uchmgi$1kdo7$1@dont-email.me>
<ac994d20-9887-4f93-a9e2-ed78224a91can@googlegroups.com>
<uci0fa$1m3b3$1@dont-email.me> <20230828092201.893@kylheku.com>
<ucim5r$1pvn0$1@dont-email.me>
<bac17518-cf9a-4f43-b86d-c5e468f437d5n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 28 Aug 2023 20:39:28 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6328b6116e1a02441974fa810d99a92f";
logging-data="1959505"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18kUhpWvarQSVf54bhHS3WzBmSWnJkB2gk="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:h1IzSPm3I4i/mAEsnZ9cjNzc5rg=
Content-Language: en-GB
In-Reply-To: <bac17518-cf9a-4f43-b86d-c5e468f437d5n@googlegroups.com>
 by: David Brown - Mon, 28 Aug 2023 20:39 UTC

On 28/08/2023 21:31, Malcolm McLean wrote:
> On Monday, 28 August 2023 at 18:40:26 UTC+1, David Brown wrote:
>> On 28/08/2023 18:35, Kaz Kylheku wrote:
>>> On 2023-08-28, David Brown <david...@hesbynett.no> wrote:
>>
>>>> This means that in at least some cases, the use of continuous text was
>>>> motivated by factors that outweighed legibility - perhaps costs, perhaps
>>>> intentionally making the text harder to read.
>>>
>>> Like, maybe, keeping the illiterate rabble illiterate, maintaining the
>>> status quo that only a tiny elite can read and write?
>>>
>> Yes. Writing without spaces isn't much harder than writing with spaces,
>> but reading it is a lot harder. As a member of the elite, you don't
>> want reading to be easier for others.
>>
>> Even within the elite classes, your ability to read unspaced texts
>> quickly (or, more often, your ability to afford a scribe who could read
>> it) was a status symbol. It was like serving larks' tongues at dinner -
>> you don't do it because they are tasty or nutritious, you do it because
>> they are expensive.
>>
>> I don't think anyone can say how much of an influence such reasons were,
>> but it is certainly one of several reasons given by historians.
>>
> And then in the next paragraph, the same people claim that spaces were
> omitted to save expensive parchment.

Yes. Does it surprise you that there could be several reasons for
something? Or that different people might have different reasons? Or
that historians might have different theories?

> You don't deliberately make things difficult for yourself. These suggestions
> are all most implausible.

They are all far more plausible than thinking it was easy to read.

> We don't really know why the Greeks used scriptio continua whilst the Jews
> did not. We do know that they did.

Agreed. But we know some things that were not the reason for it. They
did not omit spaces to make the writing more legible. That's a starting
point at least.


devel / comp.lang.c / Re: C vs Haskell for XML parsing

Pages:123456789101112
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor