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 ?: . :-)

Reply via email to