* (defun reader-macro (stream char)
(declare (ignore char))
'(print "2 is for nerds"))
READER-MACRO
* (set-macro-character #\2 #'reader-macro)
T
* 2
"2 is for nerds"
"2 is for nerds"
* (+ 32 5)
"2 is for nerds"
debugger invoked on a SIMPLE-TYPE-ERROR in thread
#<THREAD "main thread" RUNNING {1002D7F363}>:
Argument Y is not a NUMBER: "2 is for nerds"
Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.
restarts (invokable by number or by possibly-abbreviated name):
0: [ABORT] Exit debugger, returning to top level.
(SB-KERNEL:TWO-ARG-+ 3 "2 is for nerds")
I'm not sure what I expected…
Lisp general.
>Favourite dialect
>What are you working on
>What is your favourite thing about Lisp
>What is your least favourite thing about Lisp
>Favourite dialect
Common Lisp, though I haven't used enough dialects to have a particular reason why.
>What are you working on
Just messing around with some sample projects and occasionally trying out all the weird things you can do.
>What is your favourite thing about Lisp
The simplicity and flexibility. Particularly Macros.
>What is your least favourite thing about Lisp
Community is too small so other programmers bully ;_;