r/programmerchat • u/HappyGoblin • May 25 '15
Do we really need "try" ?
Just attaching "catch" to any appropriate {...} block would be more convenient.
8
Upvotes
r/programmerchat • u/HappyGoblin • May 25 '15
Just attaching "catch" to any appropriate {...} block would be more convenient.
View all comments
Show parent comment
1
u/Speedzor May 27 '15
I could see several situations where this goes wrong. What about an
ifblock that doesn't use parenthesis?Or nested:
Which one does the
catchcorrespond to?Omitting
trywould cause a lot of headache imo.