Allow Conditional Compilation Inside Enum Declaration
IchorDev
zxinsworld at gmail.com
Sun Mar 31 02:36:40 UTC 2024
On Saturday, 30 March 2024 at 22:34:46 UTC, monkyyy wrote:
> As a [specific] case or for all lists?
>
> Could you do this for functions `foo(static if(bar){1},2)`?
I’m not sure if that’s really in the scope of this idea. Maybe
that could be another proposal?
> is changing the meaning of {} nessery or should it be for
> single elements?
> `enum A{x,y,z, static if(cond) w}`
I don’t see why that would be necessary? Ideally it should work
just like any existing conditional compilation. (e.g. also
allowing `version(Something):`, etc.)
More information about the dip.ideas
mailing list