----- Original Message ----- > From: "Masklinn" <[email protected]> > To: "Brian Anderson" <[email protected]> > Cc: [email protected] > Sent: Monday, January 23, 2012 2:58:10 AM > Subject: Re: [rust-dev] First thoughts on Rust > > >> * I find strange that Rust has kept the ternary operator even > >> though > >> its conditionals are expressions of their own. > > > > At one point there was some desire to be able to write if-else > > expressions more compactly and it was trivial to add to the > > language. > > I can see that. On the other hand, I will quote Tony Hoare on > trivial-to-add features: > > > I couldn't resist the temptation to put in a null reference, simply > > because it was so easy to implement.
This comment has moved me, therefore I have filed a bug to remove ternary: https://github.com/mozilla/rust/issues/1698 We'll see where it goes. Regards, Brian _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
