Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.compilers    |    Compiler construction, theory, etc. (Mod    |    2,753 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 2,005 of 2,753    |
|    Stefan Monnier to All    |
|    Re: First language with conditional assi    |
|    05 Mar 11 13:44:54    |
      From: monnier@iro.umontreal.ca              > As for me, I don't like conditional assignments,       > much preferring the traditional form --              > if e > f then a := b else a := c;              It's very sad that programmers are trained to artificially separate the       world into "statements" and "expressions" and hence end up, as above,       preferring the less precise and more redundant form.       To me               a := if e > f then b else c;              has various advantages, e.g.:       - common subexpression elimination.       - make it blatantly obvious that this whole thing sets `a' without        having to check what each branch does.                      Stefan              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca