Stewart Stremler <[EMAIL PROTECTED]> writes:

> If you put a whitespace-is-completely-optional constraint on a
> language designer, no doubt they can come up with *something*.

I neglected to address this point in my previous post. Common Lisp has
a feature that speaks to this whitespace-optional idea, or the more
common whitespace-prohibited idea, with regard to symbol names. Symbol
names can /contain/ spaces; one must use special syntax¹ to indicate to
the reader (the built-in source parser) that such a symbol is being
alternately delimited:

  one-symbol
  two symbols
  |one symbol|

Reading these in CL:

> (read-from-string "one-symbol")
ONE-SYMBOL ;
10
> (read-from-string "two symbols")
TWO ;
4
> (read-from-string "|one symbol|")
|one symbol| ;
12


Does anyone know of other languages that tolerate spaces in
identifiers?


Footnotes: 
¹ http://www.lispworks.com/documentation/HyperSpec/Body/02_ade.htm

-- 
Steven E. Harris


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to