Safe Navigation Operator “?.” for D2 ?

Araq rumpf_a at web.de
Fri Feb 28 23:10:56 PST 2014


> Yes. That must not be understood as a hard rule, but something 
> that is true most of the time. You want to look up "Law of 
> Demeter".

No, it's not true "most of the time". It's just another piece of
arbitrary crap from the object oriented cargo cult that has no
scientific basis.


> The problem when you chain is that you make a lot of code 
> dependent on the structure of the project, which makes it hard 
> to evolve or maintain the project, as any change in the 
> structure will impact more code than it should.
>

Even if that would be true, the "refactoring über alles" OO crowd
couldn't care less... You refactor. Problem solved. Massive code
restructuring is embraced in the OO world because OO encourages
bad design like no other paradigm.


More information about the Digitalmars-d mailing list