The D Programming Language Vision Document

user1234 user1234 at 12.de
Mon Jul 4 07:52:51 UTC 2022


On Monday, 4 July 2022 at 05:51:48 UTC, Andrej Mitrovic wrote:
> On Monday, 4 July 2022 at 05:35:20 UTC, rikki cattermole wrote:
>>
>> On 04/07/2022 5:30 PM, Andrej Mitrovic wrote:
>>> Aren't these the polar opposites of each other? The GC is one 
>>> of D's strengths, yet we should avoid it as much as possible 
>>> in the standard library.
>>
>> Not necessarily.
>>
>> It could and should most likely mean that it won't do any heap 
>> allocations.
>>
>> Heap allocations are expensive after all.
>
> @safe @nogc @noheap? :)

@noheap is not so necessary, at least for aggregates we have 
`@disable new(size_t);`




More information about the Digitalmars-d-announce mailing list