Macros
Many other Lisps allow you to write things like (def x 100)
to define the value 100
to x
. In our lisp this wouldn’t work because it would attempt to evaluate the x
to whatever value was stored as x
in the environment. In other Lisps these functions are called macros, and when encountered they stop the evaluation of their arguments, and manipulate them un-evaluated. They let you write things that look like normal function calls, but actually do complex and interesting things.
These are fun thing to have in a language. They make it so you can add a little bit of magic to some of the workings. In many cases this can make syntax nicer or allow a user to not repeat themselves.
I like how our language handles things like def
and if
without resorting to macros, but if you dislike how it works currently, and want it to be more similar to conventional Lisps, this might be something you are interested in implementing.