[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
multiple-valued macros (was: do-nothing macro generates nil nevertheless)
- To: email@example.com
- Subject: multiple-valued macros (was: do-nothing macro generates nil nevertheless)
- From: Erik Naggum <firstname.lastname@example.org>
- Date: 27 Feb 1995 18:14:39 UT
- Organization: Naggum Software; +47 2295 0313
- References: <email@example.com>, <firstname.lastname@example.org>, <email@example.com>
- Sender: firstname.lastname@example.org
(our newsfeed is a little warped (with apologies to OS/2), so I haven't
read the beginning of this thread, yet.)
| My point is that some functionality is not provided:
| namely, the ability of a macro to expand into _nothing_.
assuming the Common Lisp `if', do you mean something like
(if (something) (macro-1) (macro-2) (macro-3))
where one or more of the macro-n's would expand into nothing to make this
invalid form valid?
but why stop with zero or one result when we have multiple values in other
parts of the language (albeit for completely different reasons)? can we
think of it as ,@ outside of backquote? (could #. just be replaced by ,?)
multiple-valued macros would certainly pose interesting problems in parsing
and evaluation. for completeness, we should also consider multiple-valued
reader-macroes. the mind boggles.
miracle of miracles. look what the Net dragged in.