home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / lisp / 2329 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  1.3 KB

  1. Path: sparky!uunet!olivea!decwrl!sun-barr!cs.utexas.edu!hellgate.utah.edu!hellgate!moore
  2. From: moore@cs.utah.edu (Tim Moore)
  3. Newsgroups: comp.lang.lisp
  4. Subject: Re: style-guide
  5. Message-ID: <MOORE.92Aug28104753@defmacro.cs.utah.edu>
  6. Date: 28 Aug 92 17:47:53 GMT
  7. References: <HALTRAET.92Aug13043710@monsun.si.no> <1992Aug28.004913.1@cc.helsinki.fi>
  8. Organization: University of Utah CS Dept
  9. Lines: 21
  10. In-reply-to: pirinen@cc.helsinki.fi's message of 27 Aug 92 22:49:13 GMT
  11.  
  12. In article <1992Aug28.004913.1@cc.helsinki.fi> pirinen@cc.helsinki.fi writes:
  13.  
  14. [good comments, until...]
  15.  
  16.    The VALUES form is not a good indicator of how many values are being
  17.    returned, especially when the values are just being passed through:
  18.    (VALUES (FLOOR X Y)).  Why not just use comments? Commenting the
  19.    arguments and return values of all functions external to a module is a
  20.    good principle. 
  21.  
  22. Values aren't just being passed through here. The values form is a
  23. normal function call, not some multiple-value-call construct. One
  24. value, the first value returned by FLOOR, will be returned by VALUES.
  25.  
  26. See pg 181 of cltl2, which uses (values (floor ...)) as an example of
  27. explicitly returning one value.
  28.  
  29. --
  30. Tim Moore                    moore@cs.utah.edu {bellcore,hplabs}!utah-cs!moore
  31. "Wind in my hair - Shifting and drifting - Mechanical music - Adrenaline surge"
  32.     - Rush
  33.