[Issue 13522] Let's use '_' underscore as official ignore value
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Sep 23 10:53:26 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13522
Ketmar Dark <ketmar at ketmar.no-ip.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ketmar at ketmar.no-ip.org
--- Comment #2 from Ketmar Dark <ketmar at ketmar.no-ip.org> ---
one of my so-much-universally-hated ;-) patches does exactly this (but for '__'
args — two underscores) for foreach args and lambda args (maybe function args
too, i don't remember). it's such an amusement to see people requesting same
things again and again.
as for 'foreach', this should be allowed too: `foreach (; 0..42)`. i'm using
this for some time now and found it very handy.
--
More information about the Digitalmars-d-bugs
mailing list