Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

^@

Name: Anonymous 2009-11-30 15:13

C:\Users\anon>^@
More?

Name: Anonymous 2009-12-01 11:43

>>23
The symbol name is (#', but to actually get the default reader to read it, you would have to escape it. If you truly desire to use that as a variable name without escaping it, you would have to remove the ( macro character from the current readtable, an example of how to achieve such a broken syntax would be:

(progn
  (set-syntax-from-char #\[ #\() 
  (set-macro-character #\( nil)
  (set-macro-character #\# nil)
  (set-macro-character #\' nil))

However, this would break a lot of things unless you are careful to patch things up (you should write your own #\( handler and so on).

There is no way (in any language out there) to allow any character in symbol names without escaping as long as you have SOME syntax, otherwise it would be theorethically(and practically) impossible to parse it. However, if you decide the syntax, you could easily make (#' a valid symbol name without requiring escaping. I don't see the use in doing this, but it's perfectly possible. In practice, most Lispers don't mess with the syntax, and prefer keeping it minimal, so it would indeed be used as |(#'| .

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List