Is there ANY chance we can fix the bitwise operator precedence rules?

Jeff Nowakowski jeff at dilacero.org
Mon Jun 21 17:14:22 PDT 2010


On 06/21/2010 05:11 PM, Jonathan M Davis wrote:
>
> Having something like "fallthrough" or "goto next case" would of
> course be even clearer, but those would require new keywords.

I think "fallthrough" would be a perfect keyword to add here. C 
programmers will immediately recognize it. Switch/case are already 
specialized keywords, and fallthrough can complete the set. It's 
unlikely to conflict with existing source, and this is one case where 
having a conspicuously long keyword is a good thing.

Finally, goto is ugly and continue is strongly associated with looping.


More information about the Digitalmars-d mailing list