3 ms·
I have the opposite issue trying to write in emacs-lisp after doing lots of clojure. I try to: (mapcar my-func my-list) and it throws void-variable and the
by narwally 6y ago
I have the opposite issue trying to write in emacs-lisp after doing lots of clojure. I try to:
(mapcar my-func my-list)
and it throws void-variable and then I remember that I have to add the #' reader macro to have it read as a function not a variable.
(mapcar #'my-func my-list)
It just takes some time to switch the mental model over each time. Clojure did get me in the habit of using unique names for all functions and values because accidentally shadowing a function binding is that more difficult mistake to debug.
In practice I haven't missed the flexibility of a lisp-2, if anything it's just made my code more readable because my names are forced to be more descriptive