Preferred order of evaluation

"Nils M. Holm" <fs29@rumpelkammer.uni-mannheim.de>
5 Sep 1996 23:50:13 -0400

          From comp.compilers

Related articles
Preferred order of evaluation fs29@rumpelkammer.uni-mannheim.de (Nils M. Holm) (1996-09-05)
Re: Preferred order of evaluation leichter@smarts.com (Jerry Leichter) (1996-09-06)
Re: Preferred order of evaluation dlmoore@ix.netcom.com (David L Moore) (1996-09-07)
Re: Preferred order of evaluation ok@cs.rmit.edu.au (1996-09-15)
Re: Preferred order of evaluation dmoen@mks.com (1996-09-15)
Re: Preferred order of evaluation gbcacm@ccs.neu.edu (1996-09-15)
Operator precedence devon_mccormick@smb.com (Devon McCormick) (1996-09-17)
| List of all articles for this month |
From: "Nils M. Holm" <fs29@rumpelkammer.uni-mannheim.de>
Newsgroups: comp.compilers
Date: 5 Sep 1996 23:50:13 -0400
Organization: Compilers Central
Keywords: design, question

Given a language without any operator precedence, would you prefer


1) evaluation from the left to the right, like a sequence of identical
      Operations in C [a - b + c = (a - b) + c]


or


2) evaluation from the right to the left, like in APL?
      [a - b + c = a - (b + c)]


What are the reasons for your choice?


Thanks for your help.


Bye,
nmh.


--
/* Nils M. Holm <fs29@rummelplatz.uni-mannheim.de> */
[It's one of those underwear questions, you like what you're used to. -John]


--


Post a followup to this message

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