Rant after trying Rust a bit

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 24 12:41:46 PDT 2015


On 07/23/2015 10:09 PM, Walter Bright wrote:
>
>
> Now, if you want to disallow { } within the embedded if statement, then
> the proposal becomes nothing more than:
>
>      ? => if
>      : => else

This is obviously not true:

a?b:c => a if b else c // ..?


>
> which is a potayto potahto thing.

Some people have trouble with the precedence of ?: .

Fun fact: D and C++ have different precedence for ?: . :-)


More information about the Digitalmars-d mailing list