named arguments, string interpolation, please stop.

claptrap clap at trap.com
Sun Jan 14 13:08:50 UTC 2024


On Sunday, 14 January 2024 at 05:08:07 UTC, Elias (0xEAB) wrote:
> On Saturday, 13 January 2024 at 19:22:53 UTC, claptrap wrote:
>>>> I'm saying I dont see lots of people who are confused about 
>>>> nogc.
>>>
>>> I see people who confuse it with an imaginary `@noAlloc` on a 
>>> regular basis.
>>
>> What is it that they expect it to do?
>
> Prevent allocations (e.g. in the hot paths of their code).
>
> or prevent collections (which would be GC.disable(), in fact).

So it's not that @nogc is hard to understand. It's that some 
newbies dont understand how GC works.

Maybe we should go through D.learn and find the top 3 features 
that confuse newbies and kill them. I wonder what they'd be?


More information about the Digitalmars-d mailing list