View Single Post
  #5 (permalink)  
Old December 14th, 2005, 05:31 AM
Ankur_Verma Ankur_Verma is offline
Friend of Wrox
 
Join Date: Jun 2003
Location: , , .
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma
Default

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