Remix.run Logo
▲ quixoticelixer- 6 hours ago

I started learning Clojure when I was 17, but then later moved away from programming. It's done the opposite with me, I struggle to really get the benefit of static types and I still think of everything as maps and functions.

▲Xirdus 3 hours ago | parent | next [-]

The biggest benefit of static typing is that you automatically know every single operation you can perform on every single result of every single function ever made.

▲Tcepsa 3 hours ago | parent | prev | next [-]

Haha same! All you need are primitives and maps and lists and first class functions! (Though good decomposition syntax is up there as well; it can be really helpful for telling what a given thing needs the map to include!)

▲oblio 2 hours ago | parent [-]

Awesome, how do you ensure clients of your code always do the correct operations on your data?

With static types it's obvious and you generally have to work hard (and in non intuitive ways) to mess up.

This becomes more important as team sizes grow.

▲ajasmin 3 hours ago | parent | prev [-]

[dead]