https://issues.dlang.org/show_bug.cgi?id=6421
[email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #4 from [email protected] --- (In reply to bearophile_hugs from comment #3) > (In reply to Andrej Mitrovic from comment #2) > > > With a parser fix we could implement this in D: > > float[3] arr = float[3](1.0, 2.0, 3.0); > > I also like this syntax (composed of two parts usable in different > situations): > > float[$] arr = [1.0, 2.0, 3.0]s; > > Or: > > auto arr = [1.0f, 2.0f, 3.0f]s; I had PR's for both of them, but they was rejected, because no sufficient DIP exist. You could make one. --
