Feedback from the Gripes and Wishes Campaign

max haughton maxhaton at gmail.com
Sun May 28 09:06:26 UTC 2023


On Sunday, 28 May 2023 at 07:12:22 UTC, Sebastiaan Koppe wrote:
> On Sunday, 28 May 2023 at 07:02:53 UTC, Walter Bright wrote:
>> On 5/27/2023 6:40 PM, Steven Schveighoffer w
>>> In any case, migrating `malloc` calls to `new` and ignoring 
>>> `free` should still be fine in this case.
>>
>> That's how dmd used to operate, but people ran out of memory.
>
> I never quite liked the reasoning that leaking is fine because 
> its just a batch program.
>
> I see teardown as an important part of a program. Relying on 
> the OS to do it for you will likely come back to bite you at 
> some point.

It also encourages people to write code that doesn't pay 
attention to lifetimes or dependencies within the code (e.g. dmd 
was written with the assumption that you never have to free 
anything -> the code keeps references to stuff everywhere -> GC 
can't free it)


More information about the Digitalmars-d mailing list