"with" still sucks + removing features + adding features

Jarrett Billingsley jarrett.billingsley at gmail.com
Mon May 18 10:54:10 PDT 2009


On Mon, May 18, 2009 at 1:46 PM, Andrei Alexandrescu
<SeeWebsiteForEmail at erdani.org> wrote:

> Final switch works with enums and forces you to handle each and every value
> of the enum. Regular switch gets ranged cases by the syntax case a: .. case
> b: (I've always thought switch would be greatly helped by that).

Kind of an odd syntax.  Why not "case a .. b:"?  Parsing issues?

> Static foreach might be making it too.

That'd be a nice addition.  Especially with __traits returning
arrays/tuples, it'd be an alternative to CTFE (shudder) or template
recursion.



More information about the Digitalmars-d mailing list