CNMAT / CNMAT-odot

Multi-paradigm Dynamic Programming
Other
115 stars 11 forks source link

What should the ternary conditional operator do when its first argument is a list? #226

Closed maccallum closed 10 years ago

maccallum commented 10 years ago

[true, false] ? /x = 1 : /x = 2

maccallum commented 10 years ago

The first argument is always evaluated

maccallum commented 10 years ago

The ternary conditional (syntactic sugar for if(, , )) no longer does scalar expansion.