Well nalla I must say that the case you've presented here needs to be re-thought for it design.
I would say that empty case blocks make sense with fallthrougs and C# does support that as Doknjas
mentioned. But with non-empty case blocks, if fallthroughs are not supported, i find it a welcome change.
Also, I dare say, you dont face situations where fall throughs are required as often as as those
where they are not. So if you want fall though supported even with non empty cases blocks, you are
actually asking support for the exception rather than for the norm as they call it.
In C++ where fall through for non empty case blocks is supported, is easier to program a logical error thats
hard to spot latter on. C# is 'safer' that way.
Regards
Ankur Verma
|