Blog post: What D got wrong

Guillaume Piolat first.last at gmail.com
Wed Dec 12 20:12:54 UTC 2018


On Wednesday, 12 December 2018 at 14:48:23 UTC, Atila Neves wrote:
> On Tuesday, 11 December 2018 at 14:00:10 UTC, dayllenger wrote:
>> On Tuesday, 11 December 2018 at 13:42:03 UTC, Guillaume Piolat 
>> wrote:
>>> One could say getters and particularly setters don't really 
>>> deserve a nicer way to write them. It's a code stink, it 
>>> deserve a long ugly name.  (10 years ago I would be in the 
>>> other camp)
>>
>> Can you please explain it in more detail? I never read such 
>> about getters and setters.
>
> Tell, don't ask: https://martinfowler.com/bliki/TellDontAsk.html

Sometimes formulated slightly differently as "Law of Demeter" 
https://en.wikipedia.org/wiki/Law_of_Demeter

if you like more pompous names.


More information about the Digitalmars-d-announce mailing list