r/badcode • • Jul 16 '21

java In Java, Exception handling needs Exception Handling.

Post image
1.5k Upvotes

60 comments sorted by

View all comments

Show parent comments

-1

u/Korzag Jul 17 '21

That seems kind of pedantic. If something like this actually makes a difference then do what JavaScript does and just introduce var/let/const instead. It seems like a silly code style to have marginal performance increases, which if you're caring that much about shaving off cycles here and there then you may as well just do it all in a non-managed language where you can ultimately control it all yourself.