4 ms·
> Lisp-1's hurt my brain though No worries! (defn cl-funcall [function & args] (apply function args)) Jokes aside, I've written a significant amount of
by koito17 3y ago
> Lisp-1's hurt my brain though
No worries!
(defn cl-funcall [function & args]
(apply function args))
Jokes aside, I've written a significant amount of software in Common Lisp and Clojure. The Lisp-1 vs Lisp-2 distinction isn't something that bothers me. It used to, as a beginner with strong opinions on everything. But nowadays? I don't even remember the last time I've heard Lisp-n before reading this comment.
- aidenn0 3y agoI'm just too used to naming variables things like "list" Having variables that shadow functions, that are later used somewhere causes rather inscrutable jvm backtraces to appear in Clojure.
- koito17 3y agoIf you use the CIDER debugger then this doesn't appear to be a big issue. Try step debugging the following function. I get an IFn related exception right as the call to (list name) is made. (defn f [name list] #dbg (concat list (list name))) (f 'alice '(bob))