home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / scheme / 2856 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  1.2 KB

  1. Xref: sparky comp.lang.scheme:2856 comp.lang.c:19199
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!spool.mu.edu!olivea!apple!voder!woodstock!news
  3. From: dyer@airplane.sharebase.com (Scot Dyer)
  4. Newsgroups: comp.lang.scheme,comp.lang.c
  5. Subject: Re: applying or
  6. Message-ID: <1993Jan4.190721.10508@sharebase.com>
  7. Date: 4 Jan 93 19:07:21 GMT
  8. References: <1993Jan1.184655.7023@viewlogic.com>
  9. Reply-To: dyer@airplane.sharebase.com (Scot Dyer)
  10. Organization: NCR/ShareBase Corporation
  11. Lines: 16
  12.  
  13. From: josh@viewlogic.com (Josh Marantz)
  14. /// I was sort of glad to move to C/Scheme, where this short-circuiting
  15. /// was guaranteed, although I never thought about the compiler
  16. /// optimizations that the short-circuit guarantee prevents!  Would it be
  17. /// legal for a C or Scheme compiler to avoid the short-circuiting if it
  18. /// could prove there were no side effects involved, and if it looked like
  19. /// a fruitful optimization?
  20.  
  21. Who would know it had been done?   ;)
  22.  
  23.     -- Scot
  24.  
  25. P.S.  This is a GOOD IDEA.  I think Scheme compilers will eventually keep
  26.     track of the functional purity of functions and optimize accordingly.
  27.     Until then, the current AND is useful in the extreme...  Especially to
  28.     teach programmers that things aren't always what they seem!  ;)
  29.