3 ms·
I feel more flexible, clojure.spec helps a lot and is a wonderful tool to add to your reflection/parsing/validation/testing toolboxes. The REPL driven developme
by freshhawk 8y ago
I feel more flexible, clojure.spec helps a lot and is a wonderful tool to add to your reflection/parsing/validation/testing toolboxes. The REPL driven development and immutability defaults means it isn't saved in a file until in runs.
Clojure idioms put those black magic macros or even complex ones in the "last resort" category. It is very much focused on representing problems as data then composing general functions to work with them. That is ranked as more elegant than the macro driven dsl style and similar ones. They are still used and are very useful.
I find types are one thing among many, all affecting each other, when it comes to how productive I am and how much I enjoy it. Clojure is unreasonably effective and spec solved the class of problem that I would have liked to have gradual types for so I don't miss them no. Gradual typing is cool though, I'm sure I'd make use of it.