🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #646

Re: Taming The Switch-Statement

#646
From: David Brown
Date: Wed, 21 Oct 2026 13:28
54 lines
4139 bytes
On 21/10/2026 03:23, Keith Thompson wrote:
> David Brown <david.brown@hesbynett.no> writes:
>> On 19/10/2026 23:27, Janis Papanagnou wrote:
> [...]
>>>     * a b     PN (Polish Notation)
>>
>> There is no term "Polish Notation" - except as occasionally used to
>> mean /postfix/ as a short form of "Reverse Polish Notation".  RPN was
>> invented, or at least popularised, by the Polish logician Jan
>> Łukasiewicz (I admit to looking that up on Wikipedia!).  There is no
>> "PN" opposite.
> 
> Yes, there most certainly is, and "* a b" is a good example of it.
> 
> https://en.wikipedia.org/wiki/Polish_notation
> 
> Jan Łukasiewicz invented what we now call Polish notation in 1924.
> `+ 3 4` is an example (which yields 7).  Lisp syntax is more or
> less Polish notation with added parentheses.  (I'm sure the phrase
> "more or less" is doing a lot of work.)
> 
> Reverse Polish Notation, RPN, is very well known because it's
> used by some calculators, particularly those made by HP.  It's a
> postfix notation.  An example of RPN is `3 4 +` (which also yields 7).
> 
> I've never seen the term "Polish Notation", without "Reverse", used
> to refer to postfix notation.  PN is prefix; RPN is postfix.

I have - it was used as a "short" version of "Reverse Polish Notation".

I have not, that I recall, seen the term "Polish Notation" used to refer 
to prefix notation until Janis' post.

But I accept that this is purely based on my experience of when /I/ have 
heard (or not heard) the term.  I stand by my assertion that "prefix" 
would have been better in the context, but I was wrong about "Polish 
Notation" not being an established term in its own right.

> 
> I see that Janis already pointed out your error.  I'm disappointed
> that your followup did not acknowledge it.  (I'm not commenting on the
> rest of what Janis wrote.)
> 

I had not wanted to dwell on it.  (I had started a longer reply to 
Janis, but scrapped it.)  I had simply intended to recommend terms that 
had no chance of being misinterpreted, given that some of Janis' terms 
had been.

But yes, I should have acknowledged that mistake on my part.

Thus I have learned a new term from Janis, and perhaps he has learned a 
little of the another meaning of "monadic" from my post.
Technical Details
Message-ID: <11bael9$3uqp4$2@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> <11b2r36$3pvda$8@dont-email.me> <20261018193201.00000b13@yahoo.com> <11b56s8$1kr9u$2@dont-email.me> <20261019223538.00006521@yahoo.com> <11b61v8$1kr9u$6@dont-email.me> <11b78i5$2m8c9$4@dont-email.me> <11b946k$3h5oi$1@kst.eternal-september.org>

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: Wed, 21 Oct 2026 15:28:09 +0200
Organization: A noiseless patient Spider
Lines: 54
Message-ID: <11bael9$3uqp4$2@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>
 <11b2r36$3pvda$8@dont-email.me> <20261018193201.00000b13@yahoo.com>
 <11b56s8$1kr9u$2@dont-email.me> <20261019223538.00006521@yahoo.com>
 <11b61v8$1kr9u$6@dont-email.me> <11b78i5$2m8c9$4@dont-email.me>
 <11b946k$3h5oi$1@kst.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 21 Oct 2026 13:28:10 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="4156196"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18yo7c6ZILsO6paz+9N2nB3g6/o+nuXaoY="; posting-host="f78456a6491f23b3f53847b5a3287905"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:o925iFORifq9NsyiZ0Di9EiETOc= sha256:SIYhCLt+w5k7s/ZGXlTlZhECpJYvrJEKqBDSsOCxkHU=
	sha1:uxXz9ap9RkYrkzETKTdh7+zCLAk= sha256:SFE16kXYMZSP+rTDXzZ7x/VlD6BLcrG2GBHigXOfwDQ=
In-Reply-To: <11b946k$3h5oi$1@kst.eternal-september.org>
Content-Language: en-GB, nb-NO