Re: Lisp syntax, was A simpler way to tokenize and parse?

gah4 <gah4@u.washington.edu>
Sat, 25 Mar 2023 14:32:18 -0700 (PDT)

          From comp.compilers

Related articles
A simpler way to tokenize and parse? costello@mitre.org (Roger L Costello) (2023-03-24)
Re: Lisp syntax, was A simpler way to tokenize and parse? spibou@gmail.com (Spiros Bousbouras) (2023-03-25)
Re: Lisp syntax, was A simpler way to tokenize and parse? anton@mips.complang.tuwien.ac.at (2023-03-25)
Re: Lisp syntax, was A simpler way to tokenize and parse? gah4@u.washington.edu (gah4) (2023-03-25)
Re: Lisp syntax, was A simpler way to tokenize and parse? 864-117-4973@kylheku.com (Kaz Kylheku) (2023-03-26)
| List of all articles for this month |
From: gah4 <gah4@u.washington.edu>
Newsgroups: comp.compilers
Date: Sat, 25 Mar 2023 14:32:18 -0700 (PDT)
Organization: Compilers Central
References: 23-03-011 23-03-016
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="32354"; mail-complaints-to="abuse@iecc.com"
Keywords: syntax, design
Posted-Date: 26 Mar 2023 05:14:43 EDT
In-Reply-To: 23-03-016

On Saturday, March 25, 2023 at 7:48:45 AM UTC-7, Spiros Bousbouras wrote:


(snip)


> It is specific to when you have a very simple and uniform syntax and
experience
> suggests that this isn't to most people's taste. Whether it is a result of
> "mental wiring" or tradition (including mathematical tradition) to which one
> gets exposed from a young age , I don't know. What I mean by this is that
most
> people seem to find it easier to read
> a + b * c
> as opposed to
> (+ a (* b c))
>
> and I don't know if this is just the result of early exposure or an inherent
> part of how most humans' brains function.


Years ago, when there was actual competition between TI and HP
for calculator sales, there was much discussion on the advantages
of HPs RPN (postfix notation) vs. TI's algebraic (infix notation).


That seems to have gone away now, and is not discussed much.


What it always seemed to me, was it was easier to think in
postfix terms, but easier to write in infix notation. You won't
find algebra or calculus books writing expressions in prefix or
postfix form.


No idea about mental wiring or being exposed at a young age.


I wonder about studies of young(er) kids learning to use
calculators or in teaching math to younger kids.



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.