`static switch` statement?

Max Haughton maxhaton at gmail.com
Tue Sep 17 00:55:59 UTC 2019

On Tuesday, 17 September 2019 at 00:41:03 UTC, octo wrote:
> `static switch` would make a nice addition to `static if`, 
> `static foreach`, etc.
> Any thoughts?

Could it be done as static foreach (blah; blah) {static if (...) 
{} }? I don't know whether the amount of use it would get would 
be useful relative to the cost of implementing it

More information about the Digitalmars-d mailing list