On Mon, May 18, 2009 at 1:46 PM, Andrei Alexandrescu
<seewebsiteforem...@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.

Reply via email to