4 ms·
While it's not an ML-style language, I've found that I enjoy Clojure the most when it comes to JVM alternatives. The lack of F#-style pattern matching makes a
by edgyswingset 12y ago
While it's not an ML-style language, I've found that I enjoy Clojure the most when it comes to JVM alternatives. The lack of F#-style pattern matching makes a few things feel less elegant, but the general structure of my code is extremely similar.
- jarcane 12y agoThere is core.match[1], and between the restructuring bind, multimethods, and the ability to create polymorphic functions like hello in this example[2], you can replicate a lot of common FP idioms reasonably well. It's not pretty, but Clojure generally isn't. [1] https://github.com/clojure/core.match https://github.com/clojure/core.match [2] https://github.com/lazerwalker/clojurescript-koans/blob/master/src/koans/meditations/09_runtime_polymorphism.cljs https://github.com/lazerwalker/clojurescript-koans/blob/mast...