2026-10-08 00:22 UTC
now I’ve fallen down the rabbit hole of having real reader macros in emacs lisp, I now have the finalized sublanguage quoting form (which no longer needs to be top-level or templated into another form, it’s read like any other expression), a reader literal form like the Racket one that reads a language name then uses that language’s reader to read the next expression (different and less powerful than sublanguage quoting since it can’t do syntax highlighting, but still useful for some things), and an elisp/infix language with an almost-complete implementation of SRFI 105: https://srfi.schemers.org/srfi-105/srfi-105.html
maybe this is why the emacs lisp reader sucks on purpose, it’s to save users from falling down this particular hole
Replies (1)
-
@zzt@mas.to 2026-10-08 00:24
the emacs lisp manual says the reader doesn’t implement reader macros or readtables for simplicity it may not surprise you to learn that the reader with readtables is simpler than the one without them