I dun a DIP, possibly the best DIP ever
Meta
jared771 at gmail.com
Fri Apr 24 18:54:56 UTC 2020
On Friday, 24 April 2020 at 17:10:16 UTC, Steven Schveighoffer
wrote:
> staticIota is kind of another primitive that is super-useful,
> and would be easy for the compiler to provide. But could be
> done via CTFE as well.
>
> -Steve
"staticIota" *should* be a primitive, and D even supports this
functionality in exactly 1 place:
foreach (i; 0..10) { do something }
I wish this was an actual language construct so it could be used
in other places, and not just some hard coded syntax sugar.
More information about the Digitalmars-d
mailing list