2 ms·
I really like clojurescript in theory, but have a dumb practical reason for not being able to use it. I do a lot of programming in common lisp, and am way too
by aidenn0 6y ago
I really like clojurescript in theory, but have a dumb practical reason for not being able to use it. I do a lot of programming in common lisp, and am way too used to a lisp-2.
I literally can't write more than 100 lines of clojure without accidentally shadowing a function binding with a variable binding. I think the only way to break the habit would be to abstain from common lisp for 6 months or longer.
- narwally 6y agoI 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