The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: Doug McIlroy <doug@cs.dartmouth.edu>
To: tuhs@tuhs.org
Subject: Re: [TUHS] RPN (was The most surprising Unix programs)
Date: Fri, 20 Mar 2020 19:15:00 -0400	[thread overview]
Message-ID: <202003202315.02KNF088305876@coolidge.cs.dartmouth.edu> (raw)

Sorry to flog this topic, but the two examples below are an
unfair comparison. What happened to the multiplications in the
second?  And  two of the [enter]s in the first are unnecessary.
Ironically three of the four operations in the second are
actually reverse Polish!  If you had to utter sqrt first,
as we do on paper and in speech, things wouldn't look so great.

[a] [enter]
[a] [enter]
[multiply]
[b] [enter]
[b] [enter]
[multiply]
[add]
[square root]


[a]
[square]
[plus]
[b]
[square]
[square root]

Doug

             reply	other threads:[~2020-03-20 23:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-20 23:15 Doug McIlroy [this message]
2020-03-21  0:40 ` Rob Pike
2020-03-21  0:43 ` Grant Taylor via TUHS

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202003202315.02KNF088305876@coolidge.cs.dartmouth.edu \
    --to=doug@cs.dartmouth.edu \
    --cc=tuhs@tuhs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).