Discussion Thread: DIP 1039--Static Arrays with Inferred Length--Community Review Round 1
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Thu Jan 7 14:36:05 UTC 2021
On Thursday, 7 January 2021 at 13:03:54 UTC, Luhrel wrote:
> I think that `int[$] a = [1, 2, 3]` is much more user-friendly.
> ```
> auto a = [1,2,3].staticArray!ubyte
> ```
But what prevents you from writing your own library solution that
works like this?
auto ints = mkarray(1,2,3,4,5);
auto floats = mkarray(1.0f,2,3,4,5);
etc
More information about the Digitalmars-d-announce
mailing list