Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There is an orthogonal Clojure/Scala axis of interest for code bases of appreciating size: Mutability.

Clojure programmers choose immutability by default. Scala, however, makes it just as easy to write "var" as it is to write "val", and just as easy to create a mutable collection as it is to create an immutable one.

In my experience, this is far more important for larger code bases than static typing. Luckily, Scala offers immutability as a feature, which is more than can be said about Java/C++/Go/etc.



Interesting! I suppose var and val are as easy to type, but in Scala my mental default is always val; var is a smell to me. Isn't that the case for most people writing in Scala?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: