On 2/16/2014 7:39 PM, Manu wrote:I tend to agree with Andrei on this - the proposals aren't fundamental or game changing, and are kinda just bouncing the rubble around (po-tay-to vs po-tah-to).
I think a really useful construct could be made out of switch, but it seems that
it won't happen because it must support C code unchanged.
> Isn't that the entire point of final switch?Implicit in your questions is switches will only be used on enums, i.e. all the values a type can be are known to the compiler. This is only true for a smallish subset of types that are switched on.
> Why introduce final switch to address that, then do this aswell?
final switch : for enums
default : for everything else