3 ms·
What features of clojure do you feel make you more productive? I’m primarily a python user, but I spent time writing code in Ocaml to understand the potential
by wallscratch 5y ago
What features of clojure do you feel make you more productive?
I’m primarily a python user, but I spent time writing code in Ocaml to understand the potential benefits, but… (I would love to have my mind changed)… it feels like many of the features people touted about Ocaml have already made their way into python…?
1. Immutability / referential transparency seem more like nice-to-haves for a codebase, rather than the real reason people tout FP…?
2. Sum/product types and pattern matching are being added soon to python
3. Mypy is starting to gradually enable python typing, although I assume it’s still a work in progress
4. Python allows us to use map/reduce, and to pass functions around as arguments…?
I want to understand the potential benefits of FP more, but my experience with Ocaml hasn’t shown me great improvements yet. Open to having my mind changed.
- antifa 5y agoIn Ocaml, these things are all first class citizens and well integrated features. In python, most of these "features" are done half right and duct-taped on at the last second as an afterthought.