Re:Isaacs: try/catch is an anti-pattern
by romaniv on Monday November 14, 2011 @09:41AM
(#3234106)
Exceptions can make your code much shorter and readable by the virtue of centralized error handling. However, try-catching can be pretty ugly in cases when you need to handle exceptions right away. D language has scope guards to help this. I think we need some kind of better syntax to handle cases like this, but getting rid of exceptions entirely is a bad idea.
[ Parent
| on HN ]
There are no comments on this comment yet.