auto arr = [1, 2, 3] should be a static array, not a GC allocated array

Salih Dincer salihdb at hotmail.com
Thu Jul 14 18:32:48 UTC 2022


On Thursday, 14 July 2022 at 17:57:13 UTC, Ali Çehreli wrote:
> On 7/14/22 09:50, jfondren wrote:
>
> > inferred length with a feature like `int[_] arr`.
>
> Is there a reason why that can't be added to D? I don't see any 
> downside.

Also think about it this way: If everything was inferenced, there 
would be no need for a programmer.

Ali's analogies are actually about us programmers being friends 
with numbers. We need numbers and right on data, to see the 
truth...


More information about the Digitalmars-d mailing list