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