From: chneukirchen@gmail.com (Christian Neukirchen)
Subject: [TUHS] Documentation on B language?
Date: Wed, 09 Mar 2016 12:09:58 +0100 [thread overview]
Message-ID: <8737rz6h6h.fsf@gmail.com> (raw)
In-Reply-To: <20160308180019.GD32247@mercury.ccil.org> (John Cowan's message of "Tue, 8 Mar 2016 13:00:19 -0500")
John Cowan <cowan at mercury.ccil.org> writes:
> Doug McIlroy scripsit:
>
>> Various aspects of the language were borrowed from PL/I, BCPL and Algol
>> 68. ++ and -- were novel operators. The reversal of Algol's assignment
>> operators (e.g. -= became =-) was eventually repealed in C.
>
> Algol 68, like Algol 60 and Pascal, used := (pronounced "becomes") for
> assignment, and the Algol 68 assignment operators were spelled :+=,
> :-=, etc. (pronounced "plus and becomes", "minus and becomes", etc.)
My copy of the Algol 68 report says "+:=" and "-:=", so it is
questionable why Ken reversed them, especially since the ambiguity
looks obvious.
> Pre-increment operators were already known in Lisp 1.5 long before;
> they are now spelled incf and decf in Common Lisp.
AFAICS Algol didn't have them, but every Pascal I know had inc and dec.
--
Christian Neukirchen <chneukirchen at gmail.com> http://chneukirchen.org
next prev parent reply other threads:[~2016-03-09 11:09 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-08 13:01 Doug McIlroy
2016-03-08 18:00 ` John Cowan
2016-03-08 19:10 ` Andru Luvisi
2016-03-08 19:43 ` John Cowan
2016-03-08 23:13 ` Tim Bradshaw
2016-03-09 11:09 ` Christian Neukirchen [this message]
2016-03-09 11:29 ` Brantley Coile
-- strict thread matches above, loose matches on Subject: below --
2016-03-09 21:34 Doug McIlroy
2016-03-09 21:43 ` John Cowan
2016-03-10 18:09 ` scj
2016-03-09 12:34 Noel Chiappa
2016-03-07 0:57 Norman Wilson
2016-03-07 8:39 ` Angelo Papenhoff
2016-03-07 0:20 Warren Toomey
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=8737rz6h6h.fsf@gmail.com \
--to=chneukirchen@gmail.com \
/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).