On Thursday, 21 January 2016 at 20:42:56 UTC, jmh530 wrote:
On Thursday, 21 January 2016 at 19:31:19 UTC, Andrei Alexandrescu wrote:
The correct idiom involving Flag is:

* Use the name Flag!"frob" for the type of the flag

* Use Yes.frob and No.frob for the flag values

* Do NOT alias Flag!"frob" to a new name. This is unnecessary, unhelpful, and wasteful.

Can somebody please change the respective code in std.experimental.ndslice?


Thanks,

Andrei

Perhaps
https://dlang.org/phobos/std_typecons.html#.Flag
should be adjusted. It recommends aliasing.

https://github.com/D-Programming-Language/phobos/pull/3947

Reply via email to