Skip to main content

No extra BRACES proposal

No replies
jkarretero
Offline
Joined: 2009-04-08
Points: 0

Why does try, catch and finally have to have braces?

I can do this:

if(condition) statement;
else statement;

But I can't do this:

try statement;
catch (Exception e) statement;
finally statement;

I am forced to do this:

try {
statement;
} catch (Exception e) {
statement;
} finally {
statement;
}

Many people complain of too many braces.

I think any healthy language needs constant criticism for improvement and continual health.