3 ms·
But why though? What is the purpose of the immutable "dynamic" array in your D? We're unavoidably going to learn at compile time how big the array is, and know
by tialaramex 6mo ago
But why though? What is the purpose of the immutable "dynamic" array in your D?
We're unavoidably going to learn at compile time how big the array is, and knowing how big it is will always be the same or better, so we should always do that.
- WalterBright 6mo agoIf you know at compile time what the size should be: int[f().length] array; should do it.
- deleted 6mo ago[deleted]