Is there ANY chance we can fix the bitwise operator precedence rules?
Don
nospam at nospam.com
Mon Jun 21 21:06:59 PDT 2010
Jeff Nowakowski wrote:
> 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.
? It's most commonly used in error handling.
But, fallthrough actually is a goto.
More information about the Digitalmars-d
mailing list