[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: keywords



  Symbolics Common Lisp relies heavily on the property lists of keywords.
  Given that a keyword is "an indicator that means X in context Y",
  it is right reasonable that context Y might want to hang properties off 
  of it to implement that.

An alternative is to use the keyword as the indicator on a property
list attached to Y, which avoids the potential conflicts in using
a global database (a propertly list attached to a keyword).
It is inevitable that keywords will be interpreted differently
in different contexts.  What you want to avoid is conflicts
that would prevent the different contexts from coexisting.

P.S.

Can a keyword be used as the name of a type?

Can a keyword be used as the name of a block?

Can a keyword be used as a tag?

-------