3 ms·
You're right about statements being expressions and returning the last executed expression. In fact, since using Clojure I've gotten used to these, e.g. (->
by vorg 14y ago
You're right about statements being expressions and returning the last executed expression. In fact, since using Clojure I've gotten used to these, e.g.
(-> (Foo 50) (Bar))
(def x (if (> i j) 5 6))
I do miss the static typing and more readable syntax, though, and have appreciated Haskell in this regard. Too bad things like powerful macros and convenient syntax don't seem to gel together well in the same language.