News for hackers. Stuff that matters.
Re:JUXT Clojure Radar 2021 by sp33der89 on Friday September 10, 2021 @05:46AM (#28479448)
Clojure looks like almost my ideal programming language, nice tooling, features that work well together, and not too hard to learn thanks to great beginner resources, awesome REPL, frontend support.

But I do like my types, so basically I'm conflicted.

Re:JUXT Clojure Radar 2021 by macco on Friday September 10, 2021 @07:22AM (#28479985)
In clojure you will likely use spec for your data instead of using types.

This is a different approach worth checking out.

Re:JUXT Clojure Radar 2021 by sp33der89 on Friday September 10, 2021 @10:43AM (#28482242)
I 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.

Re:JUXT Clojure Radar 2021 by roguas on Tuesday September 14, 2021 @11:33AM (#28526371)
Before 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.