Future of memory management in D

Max Samukha maxsamukha at gmail.com
Sun Nov 21 09:57:07 UTC 2021


On Saturday, 20 November 2021 at 16:42:02 UTC, Atila Neves wrote:

> I don't agree - I think the point is to treat getters like 
> state.

Ok, I get your point. I think you've changed my mind.

>
>> Exposing a private member for direct mutation is generally a 
>> bad idea.
>
> I agree wholeheartedly. Getters are a code smell, setters stink.




More information about the Digitalmars-d mailing list