Safe Navigation Operator “?.” for D2 ?

Robert Clipsham robert at octarineparrot.com
Thu Feb 27 08:08:25 PST 2014


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 ?

D doesn't need this, you can implement monadic null checking in 
the library:

http://forum.dlang.org/post/kcrqyvddilteyhyygifc@forum.dlang.org

There's no need for a special operator for this. See the other 
posts in that thread for more information.

Robert


More information about the Digitalmars-d mailing list