home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / function / 976 < prev    next >
Encoding:
Text File  |  1992-07-28  |  1.1 KB  |  27 lines

  1. Newsgroups: comp.lang.functional
  2. Path: sparky!uunet!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
  3. From: fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON)
  4. Subject: Re: ** LAZY LANGUAGES FASTER?? **
  5. Message-ID: <9221117.17986@mulga.cs.mu.OZ.AU>
  6. Sender: news@cs.mu.OZ.AU
  7. Organization: Computer Science, University of Melbourne, Australia
  8. References: <1992Jul24.134857.23289@gdstech.grumman.com> <3737@svin02.info.win.tue.nl>
  9. Date: Wed, 29 Jul 1992 07:56:01 GMT
  10. Lines: 15
  11.  
  12. erik@wsinfo03.win.tue.nl (Erik Poll) writes:
  13.  
  14. >In lazy languages, an argument is evaluated once for every time that it 
  15. >is used. If the argument is used N times, it will be evaluated N times. 
  16.  
  17. As everyone has pointed out, lazy evaluation means evaluating each argument
  18. at most once. The correct term for the sort of evaluation strategy you
  19. were describing is "normal-order evaluation" (at least according to my
  20. programming languages textbook).
  21.  
  22. -- 
  23. Fergus Henderson             fjh@munta.cs.mu.OZ.AU      
  24. This .signature VIRUS is a self-referential statement that is true - but 
  25. you will only be able to consistently believe it if you copy it to your own
  26. .signature file!
  27.