The Wrong Stuff

BCS none at anon.com
Fri Sep 24 07:14:54 PDT 2010


Hello Jonathan,

> Indeed, though it might be okay to allow totally empty case statements
> on the theory that the programmer pretty much couldn't have meant
> anything other than fallthrough - though given that D has the syntax
> to do that as one case statement, it might be reasonable (and probably
> easier to implement) to not allow totally empty case statements.

In other languages, the solution is to make it not a cases statement but 
a statement with one or more case labels.

(Technically "case exp:" isn't a statment at all.)

> 
> I don't really mind it how it is, but I've known plenty of programmers
> who hated the fallthrough behavior in other languages. So, it would
> likely be a good change to make.
> 
> - Jonathan M Davis
> 
-- 
... <IXOYE><





More information about the Digitalmars-d mailing list