Is D a cult?

Pelle Månsson pelle.mansson at gmail.com
Sun Mar 7 14:45:53 PST 2010


On 03/07/2010 08:17 PM, Walter Bright wrote:
> What's the difference between ?: and functional if-then-else?

?: combined with some fun delegate thunks would be equivalent to 
functional if-then-else.

like this:

return x > y ? ({writeln(); return 6;})() : ({frobnicate_the_freezer; 
return 2;})();



More information about the Digitalmars-d mailing list