auto arr = [1, 2, 3] should be a static array, not a GC allocated array
H. S. Teoh
hsteoh at qfbox.info
Thu Jul 14 18:55:51 UTC 2022
On Thu, Jul 14, 2022 at 11:36:20AM -0700, Ali Çehreli via Digitalmars-d wrote:
> On 7/14/22 11:29, H. S. Teoh wrote:
>
> >> - int[static] // Aaaah... good old 'static' to the rescue. :D
> >
> > Argh, please no!! `static` is already overloaded too much in D,
> > please don't make it worse.
>
> I don't think 'static' can get any worse. Would the following make
> this use case stand out more?
>
> int[static static] // Oooh! Me likes...
Maybe int[static array] would make it much more obvious to newbies. ;-)
> > OK, either you're pulling my leg
>
> Was that too subtle? :) Yes, I was having fun.
[...]
Let's bring the fun back to programming(tm)! ;-)
T
--
People tell me that I'm skeptical, but I don't believe them.
More information about the Digitalmars-d
mailing list