Hacker News new | ask | show | jobs
by wheaties 4579 days ago
No it doesn't. If you think that way then you have more to learn on how to structure your code.
1 comments

Oh believe me, I do; it involves calling a spade a spade! When you need mutable state, go straight to a mutable collection to get it. It is only some people just learning Scala that get confused about the issue and we wind up with immutable collections being coupled with mutable vars (incidentally, the immutable collections were optimized for this case circa 2006 using safely shared mutable state, not sure what is done now).