dmd 1.046 and 2.031 releases

Jason House jason.james.house at gmail.com
Mon Jul 6 04:42:44 PDT 2009


Walter Bright Wrote:

> のしいか (noshiika) wrote:
> > Thank you for the great work, Walter and all the other contributors.
> > 
> > But I am a bit disappointed with the CaseRangeStatement syntax.
> > Why is it
> >    case 0: .. case 9:
> > instead of
> >    case 0 .. 9:
> > 
> > With the latter notation, ranges can be easily used together with 
> > commas, for example:
> >    case 0, 2 .. 4, 6 .. 9:
> > 
> > And CaseRangeStatement, being inconsistent with other syntaxes using the 
> > .. operator, i.e. slicing and ForeachRangeStatement, includes the endpoint.
> > Shouldn't D make use of another operator to express ranges that include 
> > the endpoints as Ruby or Perl6 does?
> 
> I think this was hashed out ad nauseum in the n.g.


Hardly. There seemed to mostly be complaints about it with Andrei saying things like "I can't believe you don't see the elegance of the syntax". In the end, Andrei commented that he shouldn't involve the community in such small changes and went silent.


More information about the Digitalmars-d-announce mailing list