home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!ames!think.com!barmar
- From: barmar@think.com (Barry Margolin)
- Newsgroups: comp.lang.scheme
- Subject: Re: R^4RS Authors Comments on Dylan
- Date: 14 Aug 1992 08:28:12 GMT
- Organization: Thinking Machines Corporation, Cambridge MA, USA
- Lines: 21
- Message-ID: <16fqqsINN8m9@early-bird.think.com>
- References: <9208132109.AA16509@peanut.crl.dec.com>
- NNTP-Posting-Host: gandalf.think.com
-
- In article <9208132109.AA16509@peanut.crl.dec.com> jmiller@crl.DEC.COM writes:
- >o Dylan's position on the order of argument evaluation (left-to-right
- > for arguments, but unordered with respect to the operator) seems
- > particularly strange, since it has the drawbacks of the Scheme
- > (unordered) decision without its performance advantages.
-
- This is similar or identical to the order in Common Lisp, which is that
- arguments are evaluated left-to-right, while the function may be evaluated
- either before or after all of them (but not in the middle).
-
- In the case of CL, the rationale was that the arguments should be evaluated
- left-to-right for historical compatibility. The function can be evaluated
- at the end so that the implementation doesn't have to save the value away
- before evaluating the arguments; since it isn't actually used until the end
- of argument evaluation, it can be more efficient to evaluate it right then.
-
- --
- Barry Margolin
- System Manager, Thinking Machines Corp.
-
- barmar@think.com {uunet,harvard}!think!barmar
-