[Off-Topic] John Carmack's point of view on GC and languages like JavaScript

wjoe invalid at example.com
Thu Aug 11 13:36:06 UTC 2022


On Monday, 8 August 2022 at 17:25:11 UTC, Paul Backus wrote:
> On Monday, 8 August 2022 at 15:51:11 UTC, wjoe wrote:
>>
>> Yes, but more typing and it requires an import.
>> No intention to complain; just saying convenience and such. :)
>
> These days, new attributes are added to the `core.attribute` 
> module rather than being available globally, so if the 
> `@GC(...)` syntax were added, it would also require an import. 
> :)

@GC(...) was not supposed to be an attribute, more akin to pragma 
but for the GC.
Literally reading: "At GC: Do not disturb", "At GC: collect now" 
(or for those who'd prefer a polite rather than a commanding 
tone: "At GC: Please don't disturb", "At GC: Would you kindly 
collect the garbage now.").

There are hints in the language and libraries which indicate a 
desire of programmers for a programming language to read or sound 
like a natural, spoken language. That's where the @(at) came 
from. :)



More information about the Digitalmars-d mailing list