Hi,
In message "Re: Case expressions and LHS of assignment...."
on 02/07/10, Hugh Sasse Staff Elec Eng <hgs / dmu.ac.uk> writes:
|> Unlike Perl (nor C++), the evaluated result of case statement is the
|> "value", not the "reference". And I feel this is a good thing. Why not
|
|A good thing because it would lead to tangled code, "giving too much
|rope to for the programmer to hang themselves" etc, or some other
|reason?
Not allowing lhs as a result is good, because of the combination of
the following:
* it's too hard to implement.
* it's too abusable (too much rope to hang yourself).
* it makes the language comprecated without helping it much.
matz.