4 ms·
In clojure you will likely use spec for your data instead of using types. This is a different approach worth checking out.
by macco 5y ago
In clojure you will likely use spec for your data instead of using types.
This is a different approach worth checking out.
- sp33der89 5y agoI thought spec wasn't that great? Or was this some time ago and it has improved meanwhile? I also saw TypedClojure but not sure what to choose.
- roguas 5y agoBefore going typedclojure. There is also malli, there is also schema. People have this urge for types, but I would give it a shot and apply types/validation when you really need or miss important edgecase etc. Spec is good if you need something robust and highly composable. Its always a tradeoff, but it has the best flexibility.