Re: symbol name with case preserved

From: Pascal Bourguignon (spam_at_thalassa.informatimago.com)
Date: 01/20/04


Date: 20 Jan 2004 00:07:14 +0100

Timothy Moore <moore@trousse.labri.fr> writes:

> Pascal Bourguignon <spam@thalassa.informatimago.com> writes:
>
> > Erik Naggum <erik@naggum.no> writes:
> > > If you decide to investigate READTABLE-CASE, you wil run into a very
> > > annoying problem: the case of Common Lisp symbols is upper-case, which
> > > these days is useful mostly in news articles like this to make them
> > > stand out from other words, so if you ask for :PRESERVE, you get to
> > > shout a lot. It would have been easy to break with the past and
>
> > Silly suggestion:
> >
> > (defpackage "common-lisp"
> > [...]
> This doesn't work for special forms. Too bad.

Yes it does because you can always cover a special form with a macro.
All special forms can be implemented by a macro the standard says.

-- 
__Pascal_Bourguignon__                     http://www.informatimago.com/
There is no worse tyranny than to force a man to pay for what he doesn't
want merely because you think it would be good for him.--Robert Heinlein
http://www.theadvocates.org/


Relevant Pages

  • Re: Common-Lisp "Primitives"
    ... > Should SET or SETQ be a primitive, considering that SETQ stands for (SET ... The first element of a special form is a special operator. ... Note also that the definition for compiler macro: ... what functions in Common-Lisp can be implemented using only a kernel ...
    (comp.lang.lisp)
  • Re: Functions in Lisp
    ... you can tell whether you are dealing with a function, ... special form (which is necessary to know how or even whether to ... symbol in the CAR of the form does not name a macro or special ... and then does the function lookup or vice versa. ...
    (comp.lang.lisp)
  • Re: SETQ vs SETF
    ... >>The thing you probably don't understand is that SETF is a special ... The arguments given to a special form are Lisp forms (that is, ... >>the same as what a macro does when a macro transforms source code ... Are there any "special operators" in Lisp? ...
    (comp.lang.lisp)
  • Re: newLISP is simple, terse, and well documented
    ... We /do/ have the abstract, at least, which suggests that the reason a FEXPR is ... ``Common Lisp, which is becoming THE Lisp standard, does not support ... the macro alternative for call by text can cause macro expansion at ... a special form, whereas a macro is an extension to a /compiler/ for handling a ...
    (comp.lang.lisp)
  • Re: a quick macro question.
    ... >>One hard problem and one easy problem. ... >>whether a macro results in many forms or just one wouldn't make any ... macro or special form). ...
    (comp.lang.lisp)