Why Ruby?

Nick Sabalausky a at a.a
Sun Dec 19 11:33:22 PST 2010


"retard" <re at tard.com.invalid> wrote in message 
news:iejab1$2t7$1 at digitalmars.com...
>
> As you can see, most of the verbosity comes from the fact that lambdas in
> D and C++ contain statements, not a single expression. It's like if-then-
> else vs ternary ?:  -- In languages like Scala these are the same built-in
> feature.

FWIW, I've always found "if() else" and other such constructs to be a bit 
verbose to use inside an expression. So I've always liked ?:  (But I can 
certainly see the advantages of being able to use statements as 
expressions.)




More information about the Digitalmars-d mailing list