🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #509

Re: Taming The Switch-Statement

#509
From: David Brown
Date: Sun, 18 Oct 2026 14:58
29 lines
2614 bytes
On 18/10/2026 16:24, Michael S wrote:
> On Sun, 18 Oct 2026 13:22:52 +0200
> David Brown <david.brown@hesbynett.no> wrote:
> 
>>
>> To me, that is just as much gibberish as the original C.  No syntax
>> is going to make sense of it - no amount of "ref" or "func" or
>> pre-fix array notation will help.
>>
> 
> [O.T.]
> Prefix array notation would not. But postfix * notation would, somewhat.
> 

I can agree that notational changes might make it marginally easier to 
understand complex declarations - or mean that declarations could be 
marginally more complex while still being easily understood.  But 
nothing can make Bart's exaggerated examples meaningful.

> It would be interesting to find out why designers of C, or of one of its
> ancestors decided that * as prefix is preferable to * as postfix.
> Were they afraid of confusion with usage of * as multiplication?
> Probably not, because confusion can arise about equally both for prefix
> and for postfix.
> 

I don't know why it is prefix.  Maybe they were keen on "*p++ = *q++" 
and similar expressions, felt "(p++)* = (q++)*" was unclear?
Technical Details
Message-ID: <11b2mqu$16mof$3@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <119qf6l$2rmg3$1@dont-email.me> <11arjmc$2qid7$1@dont-email.me> <11at5vi$5vu$1@reader2.panix.com> <11auad0$3no1k$1@dont-email.me> <11aupfl$3ul$1@reader2.panix.com> <11avmfb$55rt$1@dont-email.me> <11b2a6d$131h6$1@dont-email.me> <20261018172446.00002d43@yahoo.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: David Brown <david.brown@hesbynett.no>
Newsgroups: comp.lang.c
Subject: Re: Taming The Switch-Statement
Date: Sun, 18 Oct 2026 16:58:38 +0200
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <11b2mqu$16mof$3@dont-email.me>
References: <119qf6l$2rmg3$1@dont-email.me> <11arjmc$2qid7$1@dont-email.me>
 <11at5vi$5vu$1@reader2.panix.com> <11auad0$3no1k$1@dont-email.me>
 <11aupfl$3ul$1@reader2.panix.com> <11avmfb$55rt$1@dont-email.me>
 <11b2a6d$131h6$1@dont-email.me> <20261018172446.00002d43@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 18 Oct 2026 14:58:39 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1268495"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+d20jlBPD/M/rXgXx4ZsvLq1k6wThQZIs="; posting-host="a272f2752d0a4376a695806f42b83d2a"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:uOOxi6dqlXJdx4Eo5KvNdTp2myo= sha256:NmL+OuStoLBdDAy52sWX5xcm9P6Ztt9U/cVrWnCWLvE=
	sha1:8UQoaQ9f0dgMkz6rOjan48xuwhY= sha256:xgQjPCSfnM+RTTpaouO6RUCtI1OghXjQkVu8yR8779Y=
Content-Language: en-GB
In-Reply-To: <20261018172446.00002d43@yahoo.com>