Safe Navigation Operator “?.” for D2 ?
deadalnix
deadalnix at gmail.com
Fri Feb 28 11:27:08 PST 2014
On Friday, 28 February 2014 at 09:24:23 UTC, John Colvin wrote:
> On Thursday, 27 February 2014 at 20:49:59 UTC, deadalnix wrote:
>> On Thursday, 27 February 2014 at 13:27:14 UTC, Remo wrote:
>>>
>>> Apparently C# will get it in the next version.
>>> http://blogs.msdn.com/b/jerrynixon/archive/2014/02/26/at-last-c-is-getting-sometimes-called-the-safe-navigation-operator.aspx
>>>
>>> What do you think how well would this work in D2 ?
>>
>> Chaining . operation is a code smell to begin with
>
> It is? Why?
Long story : http://c2.com/cgi/wiki?LawOfDemeter
Short story : It tends to make a lot of code dependent of the
structure of your project, which affect evolution and maintenance
negatively.
More information about the Digitalmars-d
mailing list