Hacker News new | ask | show | jobs
by axelrosen 2770 days ago
Emacs has a great rx macro that does something like that and is widely used in elisp projects.

https://github.com/typester/emacs/blob/master/lisp/emacs-lis...

Though then again the nice (best?) thing about macros is it gets inlined as a string at compile time anyways.

1 comments