💾 Archived View for thebird.nl › gn-gemtext-threads › topics › lisp › tips-and-tricks.gmi captured on 2022-07-16 at 15:51:05. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-04-28)

-=-=-=-=-=-=-

Defining a scheme sexp comment with a reader macro

SET-DISPATCH-MACRO-CHARACTER

CL-USER(1): (set-dispatch-macro-character #\# #\; (lambda (s c n) c n (read s t nil t) (values)))

CL-USER(2): (+ 3 (+ 2 3) 1)

9
CL-USER(3): (+ 3 #;(+ 2 3) 1)

4

Special thanks to Ed Langley on #common-lisp:matrix.org.

Tags