Groups | Search | Server Info | Login | Register
Groups > comp.lang.awk > #9760
| Path | csiph.com!news.swapon.de!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Janis Papanagnou <janis_papanagnou+ng@hotmail.com> |
| Newsgroups | comp.lang.awk |
| Subject | Re: Operator precedence |
| Date | Sun, 26 May 2024 00:03:02 +0200 |
| Organization | A noiseless patient Spider |
| Lines | 37 |
| Message-ID | <v2tn6n$32bqt$1@dont-email.me> (permalink) |
| References | <v2nium$1pl8f$1@dont-email.me> <20240523092856.646@kylheku.com> <87sey8movv.fsf@axel-reichert.de> <v2okuh$1vrvh$1@dont-email.me> <v2ouo9$2547f$1@dont-email.me> <20240523210755.307@kylheku.com> <87zfsektvi.fsf@axel-reichert.de> <v2tlbf$320cq$1@dont-email.me> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Sun, 26 May 2024 00:03:03 +0200 (CEST) |
| Injection-Info | dont-email.me; posting-host="cf30f1f968a15dcbaaf47ec1ea306811"; logging-data="3223389"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/wjVs8inrUpcTU4i5dy/It" |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
| Cancel-Lock | sha1:d3qhcoPKBCvnVy/jxrjWgsLevtU= |
| In-Reply-To | <v2tlbf$320cq$1@dont-email.me> |
| X-Enigmail-Draft-Status | N1110 |
| Xref | csiph.com comp.lang.awk:9760 |
Show key headers only | View raw
On 25.05.2024 23:31, Janis Papanagnou wrote:
> On 25.05.2024 13:34, Axel Reichert wrote:
>>
>> It would be interesting to learn about the motivation for spreadsheets
>> and "bc" to deviate from the mathematical convention.
>
> It's not only these two program types. As noted upthread it's
> also Ksh and Algol 68 (for example), and it seems quite common
> in computing according to the cited Wikipedia article.
WRT the second question ("deviate from the mathematical convention")
I suppose it's because it's not the best fit for the formalization.
Tight binding of monadic operators appears just natural (to me), so
their "motivation" is quite obvious (to me).
(Mind my remark that mathematicians and computer scientists were
involved in the Algol 68 definition, and that this topic had been
discussed there, and despite the old mathematical convention they
decided to consistently streamline the definition. Frank Pagan's
Algol 68 book, for example says that _every_ monadic operator has
higher precedence than any dyadic operator. And that makes sense;
also in my opinion. I consider Algol 68 also a landmark due to its
extraordinary formal definition, that's why I emphasize it here as
an outstanding paragon.)
(Yet I haven't seen any convincing counter argument. But maybe we
should just agree to disagree, since this topic (as I've read) had
often lead to heated disputes and that's the least I wanted to have
provoked with my post.)
People should be anyway aware of the operator precedences in the
various programming languages since there are obviously yet worse
definitions than the one we've been discussing here.
Janis
Back to comp.lang.awk | Previous | Next — Previous in thread | Next in thread | Find similar
Operator precedence Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-05-23 16:13 +0200
Re: Operator precedence Kaz Kylheku <643-408-1753@kylheku.com> - 2024-05-23 16:49 +0000
Re: Operator precedence Axel Reichert <mail@axel-reichert.de> - 2024-05-23 19:14 +0200
Re: Operator precedence Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-05-24 01:53 +0200
Re: Operator precedence Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-05-24 04:41 +0200
Re: Operator precedence Kaz Kylheku <643-408-1753@kylheku.com> - 2024-05-24 04:32 +0000
Re: Operator precedence Axel Reichert <mail@axel-reichert.de> - 2024-05-25 13:34 +0200
Re: Operator precedence Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-05-25 23:31 +0200
Re: Operator precedence Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-05-26 00:03 +0200
Re: Operator precedence Kaz Kylheku <643-408-1753@kylheku.com> - 2024-05-25 22:26 +0000
Re: Operator precedence Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-05-30 06:59 +0200
Re: Operator precedence Axel Reichert <mail@axel-reichert.de> - 2024-05-30 10:24 +0200
Re: Operator precedence Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-05-31 17:08 +0200
Re: Operator precedence Christian Weisgerber <naddy@mips.inka.de> - 2024-05-26 00:37 +0000
Re: Operator precedence Kaz Kylheku <643-408-1753@kylheku.com> - 2024-05-26 02:06 +0000
Re: Operator precedence Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-05-30 07:26 +0200
Re: Operator precedence Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-05-30 07:06 +0200
Re: Operator precedence Axel Reichert <mail@axel-reichert.de> - 2024-05-30 10:22 +0200
Re: Operator precedence Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-05-31 17:16 +0200
Re: Operator precedence Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-05-25 23:31 +0200
Re: Operator precedence Kaz Kylheku <643-408-1753@kylheku.com> - 2024-05-26 01:29 +0000
Re: Operator precedence Axel Reichert <mail@axel-reichert.de> - 2024-05-30 10:17 +0200
Re: Operator precedence Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-05-31 17:46 +0200
Re: Operator precedence Axel Reichert <mail@axel-reichert.de> - 2024-06-01 09:11 +0200
Re: Operator precedence Kaz Kylheku <643-408-1753@kylheku.com> - 2024-05-24 03:45 +0000
Re: Operator precedence Axel Reichert <mail@axel-reichert.de> - 2024-05-25 13:09 +0200
Re: Operator precedence Kaz Kylheku <643-408-1753@kylheku.com> - 2024-05-25 22:20 +0000
csiph-web