|
|
|
|
|
by mortyseinfeld
4532 days ago
|
|
With Scala you feel smart having just got something to work in a beautiful way but when you look around the room to tell your clojure colleague how clever you are, you notice he left 3 hours ago and there is a post-it saying use a Map So he was making reference to Clojure here. That's fine, but you don't have to make things complicated in Scala if you don't want to. I love the semantics of Clojure, but until you get some optional typing and possibly another syntax baked in forget about it for a whole class of devs. |
|
"until you get some optional typing"
There is work being done on an optional type system:
https://github.com/clojure/core.typed
There are also some interesting experiments in enforcing specific data structures:
https://github.com/prismatic/schema
Much effort has been made to make contract programming easy in Clojure:
https://github.com/clojure/core.contracts
And if you would feel the urge to respond with something like "why is such important functionality in a library", I'll point out enforcing pre and post conditions (on a function) has a nice syntax that is part of the language:
http://blog.fogus.me/2009/12/21/clojures-pre-and-post/
I find that every time I read an article about Scala I am left wondering "Why don't these people just use Clojure?"