Possible Duplicate:
What is the motivation for Scala assignment evaluating to Unit rather than the value assigned?
I was just wondering why an assignment in Scala returns Unit. It would be pretty useful if it returned the value assigned, so that we could chain assignments, like this:
val a = b = c = 9
I'm sure there must be a reason.