So in some cases you have (int) and in others (unit,int). I can reason on that :)
So in Scala, the compiler guarantees it, iff you're careful, so it's not such a compelling guarantee. In Haskell, you're forced to write things in ways which many programmers would find awkward, but the guarantees are there.
-
-
As in my other tweets, I use Scala in a very immutable way, but not entirely immutable because actors save me some problems by preventing races. Still, I prefer to use a case class to maintain immutable state at the instance level because it frees my mind from mutability burden.
-
Yeah, that's a reasonably good approach, and Scala facilitates it well. Your state is at least all in one place. There is nothing to stop you mutating global state defined elsewhere, except convention, though.
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.