🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #520

Re: Taming The Switch-Statement

#520
From: David Brown
Date: Sun, 18 Oct 2026 19:11
42 lines
3179 bytes
On 18/10/2026 17:26, Michael S wrote:
> On Sun, 18 Oct 2026 16:58:38 +0200
> David Brown <david.brown@hesbynett.no> wrote:
> 
>> 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?
>>
> 
> Why would it require parentheses?
> 

Maybe it would not - but I think perhaps "p++* = q++*" would be even 
less clear.  But again, I have no idea here, and if dereferencing had 
been postfix, it might have had knock-on effects to other aspects of 
operator ordering or precedence.
Technical Details
Message-ID: <11b35kn$1cn63$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> <11b2mqu$16mof$3@dont-email.me> <20261018182627.00001934@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 21:11:19 +0200
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <11b35kn$1cn63$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>
 <11b2mqu$16mof$3@dont-email.me> <20261018182627.00001934@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 19:11:20 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1465539"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18glSmJC0y+wMfrbtbAE2ockGEDlqM8mb4="; posting-host="a272f2752d0a4376a695806f42b83d2a"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:jqeG+e7zAakWgcamaZ+F4rUsgfI= sha256:7zgonVjfYrPPaEojJg0xsSHm3cfgAzbRiZ4DEMqzuUQ=
	sha1:YXOBTvhgVPaT25P06qbmbihXp+U= sha256:Plchsj8of7soCHYzL2POsyIcXmt1SxoL6PrpvT3W0A4=
In-Reply-To: <20261018182627.00001934@yahoo.com>
Content-Language: en-GB