[EMAIL PROTECTED] writes: : Why the double semantics of 'when'? : : It implicitly breaks when used as a 'when' block, but does not as a 'when' : statement. It seems that a when should be a when should be a when, and a : when being a when would be a win.
I can see your point. But emember the principle that important things go down the left margin. Therefore any "when" statement modifier is to be considered unimportant relative to the statement it modifies. By that principle, it doesn't break. Plus it provides a handy skipless skip syntax for when you want a whole bunch of fallthroughs. The sum of those two notions is worth the loss in orthogonality, I believe. The "when" is still different from an "if" in preferentially matching against the given. And I'd like to discourage people from flipping all their when clauses around merely to get rid of two curlies. Larry