[rust-dev] First thoughts on Rust
banderson at mozilla.com
Sat Jan 28 16:02:27 PST 2012
----- Original Message -----
> From: "Masklinn" <masklinn at masklinn.net>
> To: "Brian Anderson" <banderson at mozilla.com>
> Cc: rust-dev at mozilla.org
> 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:
We'll see where it goes.
More information about the Rust-dev