3 ms·
If I'm not mistaking, there is no JEP for making throw statements expressions. Is there an obvious thing that I'm missing here? It would make sense for concise
by nikeee 7y ago
If I'm not mistaking, there is no JEP for making throw statements expressions. Is there an obvious thing that I'm missing here?
It would make sense for concise method bodies [1] and throwing in switch expression branches more consistent (over making exceptions for throw statements).
Also, C# did the same thing.
[1]: https://openjdk.java.net/jeps/8209434 https://openjdk.java.net/jeps/8209434