Nullable condition operator
Meta via Digitalmars-d
digitalmars-d at puremagic.com
Fri Dec 11 08:09:27 PST 2015
On Friday, 11 December 2015 at 08:30:21 UTC, Martin6265 wrote:
> But the syntax of it will be like calling template func, and
> its not desirable.
> The trick is in the simplicity of the pattern not only in
> functionality.
I guess it's somewhat subjective, as while I liked the ?. syntax
at first I now find it very noisy.
You?.have?()?.a?.million?.question?.marks?()?.cluttering?.your?.code
I find the D syntax much cleaner, because it's just regular
function call syntax.
maybe(You).have().exactly.zero.question.marks().cluttering.your.code
More information about the Digitalmars-d
mailing list