3 ms·
Having to wrap your logic with `(let [value (...)] ...)` in order make a new local variable is unnecessarily painful. You can have more than one value in a let
by papaf 9y ago
Having to wrap your logic with `(let [value (...)] ...)` in order make a new local variable is unnecessarily painful.
You can have more than one value in a let and it typically does not cause problems. If you do find it causes problems, it is trivial to change the language and invent your own, expression for defining local variables.
Its fine to have your reasons for hating lisp, but if this is the only thing that puts you off, I recommend giving it another try.
- soberhoff 9y agoI program in Clojure more than in any other language. That doesn't change the fact that I feel a stronger incentive to avoid local variables than in any other language I've used so far. Also if I wanted to tackle this issue with a macro I'd probably have to make an alternative to `defn`. That's a great way to invent a dialect of Clojure nobody else will be familiar with.