"Per Ångström" <d-n...@autark.se> wrote in message 
news:ibr8bs$22m...@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? 


Reply via email to