Regarding the proposed Binray Literals Deprecation
Quirin Schroll
qs.il.paperinik at gmail.com
Wed Sep 21 12:51:11 UTC 2022
On Wednesday, 21 September 2022 at 12:12:52 UTC, Zealot wrote:
> ```d
> alias F = void function(int, double);
> enum : F
> {
> f1 = (i, d) { },
> f2 = (i, d) { }
> }
> ```
This is big. You can do
```d
enum : void function(int, double)
{
f1 = (i, d) { },
f2 = (i, d) { },
}
```
> so i'd say this should work too
> ```d
> enum : F f1 = (i, d) { };
> ```
Why do you think this is good? Just use a space instead of `:`.
More information about the Digitalmars-d
mailing list