Re: First language with conditional assignment?

"Nils M Holm" <nmh@t3x.org>
Fri, 4 Mar 2011 17:00:50 +0100

          From comp.compilers

Related articles
First language with conditional assignment? compilers@is-not-my.name (2011-03-03)
Re: First language with conditional assignment? nmh@t3x.org (Nils M Holm) (2011-03-04)
Re: First language with conditional assignment? gah@ugcs.caltech.edu (glen herrmannsfeldt) (2011-03-04)
Re: First language with conditional assignment? cr88192@hotmail.com (BGB) (2011-03-04)
Re: First language with conditional assignment? kym@kymhorsell.com (2011-03-05)
Re: First language with conditional assignment? robin51@dodo.com.au (robin) (2011-03-05)
Re: First language with conditional assignment? news@cuboid.co.uk (Andy Walker) (2011-03-05)
Re: First language with conditional assignment? monnier@iro.umontreal.ca (Stefan Monnier) (2011-03-05)
[10 later articles]
| List of all articles for this month |
From: "Nils M Holm" <nmh@t3x.org>
Newsgroups: comp.compilers
Date: Fri, 4 Mar 2011 17:00:50 +0100
Organization: Compilers Central
References: 11-03-006
Keywords: syntax, history
Posted-Date: 04 Mar 2011 12:06:12 EST

compilers@is-not-my.name wrote:
> Does anyone know what the earliest languages supporting conditional
> assignment were? Although the construct is useful I don't like the syntax in
> C-like languages. I am curious if there were earlier examples and what the
> syntax was.


In case you meant conditional expressions like C's


predicate? consequent: alternative


then BCPL had


predicate-> consequent: alternative


in 1966 and and LISP had


(COND (predicate1 expression1) ...)


in 1960.


--
Nils M Holm < n m h @ t 3 x . o r g > www.t3x.org
May all beings be happy, peaceful, and free from suffering!



Post a followup to this message

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