home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!edcastle!aiai!jeff
- From: jeff@aiai.ed.ac.uk (Jeff Dalton)
- Newsgroups: comp.lang.lisp
- Subject: Re: style-guide
- Keywords: style
- Message-ID: <7389@skye.ed.ac.uk>
- Date: 28 Aug 92 16:53:06 GMT
- References: <HALTRAET.92Aug13043710@monsun.si.no> <1992Aug28.004913.1@cc.helsinki.fi>
- Organization: AIAI, University of Edinburgh, Scotland
- Lines: 40
-
- In article <1992Aug28.004913.1@cc.helsinki.fi> pirinen@cc.helsinki.fi writes:
- >You rightly emphasise using 'the most specific construct'. This, to my
- >mind, is the central principle of technical communication, although 'the
- >most appropriate construct' might be a better way of putting it.
-
- That's not a better way of putting it, it's saying something
- different. Picking the most appropriate construct does not
- necessarily require picking the most specific one.
-
- >Strunk & White put it in their usual admirably terse and concrete style: 'the
- >right word in the right place' (I also don't have my style guides handy,
- >but I think I remember that right).
-
- That's fine unless it's taken to mean there's always a single right
- word.
-
- >There should probably be a whole chapter on the pitfalls of complex setf
- >methods. I might write that chapter when I return my erstwhile
- >employer, Harlequin, and regain access to some good examples of them.
-
- I tend to think the answer to the problems of complex SETF methods
- is not to use them (though I have used them once or twice), so I'd
- be interested in seeing some good examples.
-
- >CATCH and THROW have their place, when you truly want dynamic scope and
- >a restart is not appropriate. They could, however, often be replaced by
- >using RETURN-FROM encapsulated in a closure, a technique a CL programmer
- >should understand anyhow.
-
- It might be useful to have some guidance on when to make this
- replacement. Anyway
-
- >Macros are a major reason why Lisp is such a great language to write
- >programs in. They are a great aid to clarity, if used adroitly. Macro
- >writing is the touchstone of a Lisp programmer's skill. Therefore do
- >beware, but do dare!
-
- Just so.
-
- -- jd
-