The D Scripting Language
Daniel Murphy
yebblies at nospamgmail.com
Mon Nov 15 16:10:21 PST 2010
"Per Ångström" <d-news at autark.se> wrote in message
news:ibr8bs$22mu$1 at digitalmars.com...
> return s || "default";
I think allowing the second expression in the ternary operator to be omitted
would be a better fit for D, and provide the same function.
ie.
auto x = a ? a : b;
auto x = a ? : b;
I think bearophile might have already proposed this?
More information about the Digitalmars-d
mailing list