On 11/25/2010 11:00 AM, Graydon Hoare wrote:
Who feels like adding a ternary operator?
Not I. My instinctive argument against it is that if-then-else is the weaker of the two branching constructs we have in the language. The more powerful one (eventually) will be the "alt" construct, which allows the programmer to do everything that "if" does via pattern guards, as well as allowing destructuring and pattern matching on data values. Blessing "if-then-else" but not "alt" with the expression form seems strange to me.
Patrick _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
