by garren · 4y ago · 0 comments
I love lisps. Why choose slope over something like racket or maybe clojure(script)?
Correct me if I'm wrong, but it's missing one vital lisp feature for making it actually hackable: macros!
Couldn't find anything about it in the docs and couldn't search the source code for it either, via their git webpage either.
is there not a whole class of problems that are not trivial if you cannot control evaluation of forms / expressions? this is one of the things (non-reader) macros provide.
Assuming quote works, you can do:
(eval (macro-expand '(
# rest of file goes here
)))
which I think technically meets the standards for "trivial", albeit annoying.(Edit: Although it'd have to be eval-with-macro-expand if you want proper first-class macros.)
So, simpler but with some modern paradigms thrown in to make it more 'respectable'...