Re:JEP draft: Exception handling in switch
by speed_spread on Friday April 19, 2024 @05:26PM
(#40092086)
Further bikeshedding this, since the JEP admits regular clauses and Exception clauses should be kept separate as they are treated differently, we could as well retain the original catch syntax:
Current try/catch gymnastics are laborious, requiring blocks making usage unwieldy in otherwise-one-line lambdas. Requiring "case throws" is yet more useless syntax inflation. It would be nice to keep things streamlined this once.
[ Parent
| on HN ]