Safe Navigation Operator “?.” for D2 ?
Dicebot
public at dicebot.lv
Fri Feb 28 05:30:27 PST 2014
On Friday, 28 February 2014 at 12:28:22 UTC, John Colvin wrote:
> Do you mean:
>
> Chaining operations that can return null (or some other
> known-to-be-invalid state) is a code-smell.
>
> That's quite different to saying:
>
> Chaining operations using . is a code-smell.
>
> which is what deadalnix said.
Chaining . for non-nullables should be OK, I don't know what
issue deadlnix sees here (or it is just a typo?)
More information about the Digitalmars-d
mailing list