[Issue 11213] Simplify switch case-range statement

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 10 02:23:23 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11213


monarchdodra at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |monarchdodra at gmail.com


--- Comment #4 from monarchdodra at gmail.com 2013-10-10 02:23:23 PDT ---
(In reply to comment #3)
> > http://dlang.org/faq.html#case_range
> 
> As written in the FAQ, it's intended syntax.

As an enhancement, I don't see why

case 0 : .. case 4 :

couldn't also be:

case 0 .. 5;

If anything, "case 0 .. 5" is more consistent with what the language does
*everywhere*else*, and "case 0 : .. case 4 :" is the actual artifact that never
should have existed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list