Re: First language with conditional assignment?

compilers@is-not-my.name
Mon, 07 Mar 2011 09:39:03 -0000

          From comp.compilers

Related articles
[3 earlier articles]
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)
Re: First language with conditional assignment? derekrss@yahoo.ca (Derek) (2011-03-06)
Re: First language with conditional assignment? compilers@is-not-my.name (2011-03-07)
Re: First language with conditional assignment? compilers@is-not-my.name (2011-03-07)
Re: First language with conditional assignment? compilers@is-not-my.name (2011-03-07)
Re: First language with conditional assignment? neitzel@gaertner.de (2011-03-07)
Re: First language with conditional assignment? bc@freeuk.com (Bartc) (2011-03-07)
Re: First language with conditional assignment? alex.colvin@valley.net (mac) (2011-03-07)
Re: First language with conditional assignment? gah@ugcs.caltech.edu (glen herrmannsfeldt) (2011-03-07)
[2 later articles]
| List of all articles for this month |

From: compilers@is-not-my.name
Newsgroups: comp.compilers
Date: Mon, 07 Mar 2011 09:39:03 -0000
Organization: Compilers Central
References: 11-03-014
Keywords: syntax, history
Posted-Date: 07 Mar 2011 11:51:45 EST

> >Does anyone know what the earliest languages supporting conditional
> >assignment were?
>
> There's Algol from c. 1960, with things like:
>
> a := if e > f then b else c;
>
> As for me, I don't like conditional assignments,
> much preferring the traditional form --
>
> if e > f then a := b else a := c;


I agree at least *now* in the 21st century the 2nd form is more
readable. It could be in 1960 since there was nothing to compare it to
the first form would have been acceptable. I mean it *must* have been
acceptable, by definition ;) Anyway I think the example you gave was a
high point of program language development. Before then I don't know
if there was such a construct in any HLL. But many of you guys have
been around longer than I have, maybe I'm wrong. Thanks for your post.
[Anything you're used to seems "natural", anything you're not used to
seems wacky. I rather like the Algol form, but then, I programmed in
BLISS before I programmed in C.


This is drifting away from anything related to compiler design,
so I'm going to wind it down. -John]



Post a followup to this message

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