4 ms·
The Elvis operator was proposed for Java 7 and hasn't made it back in since. I'm sure you can put in the effort to write a proposal again but I doubt it'd stay
by jeroenhd 4y ago
The Elvis operator was proposed for Java 7 and hasn't made it back in since. I'm sure you can put in the effort to write a proposal again but I doubt it'd stay up for long. I'm not going to put in the effort of fighting a committee that has probably already made up its mind when I can write Kotlin or C# instead.
Maybe Manifold will add the operator somehow. That seems to be the place modern language features that the Java comities don't like end up.