Discussion Thread: DIP 1039--Static Arrays with Inferred Length--Community Review Round 1

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Wed Jan 6 10:55:39 UTC 2021


I am in favour of more controlled type inference in general, but 
perhaps this one is a bit specific. What if you defined "_" to 
mean "deduce whatever should be in this spot", not only for 
static arrays, but for all types?


Then you could do:

int[_] = …

or

_[_] …


etc



More information about the Digitalmars-d-announce mailing list