mozilla/rust — Issue #1698: Remove ternary operator
Author: brson
Created: 2012-01-28 23:40:15+00:00
State: open
Labels: design, easy, front, middle, rfc, unassigned

One of the comments that stuck with me after the 0.1 announcement was somebody asking why we have a ternary operator, since it is the exact same thing as our `if` expressions. I'm sympathetic to this sentiment

Lately I have been feeling wary about the rapid addition of features to the language and think that we need to be more cautious about committing to things we don't really need. One of the original mandates upon the announcement of Rust was to focus on removing features (it's in the language FAQ), and I don't think there's any way to argue that we have succeeded at that.

Admittedly, the ternary operator is a low-maintenance feature, but its removal is also low-impact.