The Wrong Stuff

lurker lurk at lurking.net
Fri Sep 24 08:56:22 PDT 2010


Andrei Alexandrescu Wrote:

> On 9/23/10 22:59 CDT, Walter Bright wrote:
> > Jonathan M Davis wrote:
> >> 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.
> >
> > I'm probably alone in this, but I've always liked the C behavior and
> > never had a problem with it. It's probably from my asm days, as it works
> > just like labeled asm statements do.
> 
> Well admitting you're alone in this is the first step to recovery :o).
> 
> Andrei

He's not alone with his view. The automatic implicit porting of C code is an important feature - D should work even more like C than it does now. The syntax could also make use of a revamp, we have 'pure' and 'const' and so forth, in C those are __attribute__((pure)) and similar kind of conventions. The C approach saves keywords for actual code.


More information about the Digitalmars-d mailing list