3 ms·
No but too many of them are an indicator of poor design. An example of this is C++ and the sheer number of gotchas presented by Herb Sutter and others: http://w
by codexon 17y ago
No but too many of them are an indicator of poor design. An example of this is C++ and the sheer number of gotchas presented by Herb Sutter and others: http://www.gotw.ca/gotw/ http://www.gotw.ca/gotw/
- axod 17y agoIf you're doing break or return from within a finally{} block, the problem of design is your own doing if the results are surprising to you. The only real life gotcha I had with Java very early on was the realization that a++ isn't an atomic operation :/
- lucifer 17y agoBut that is clearly not the case here. There are no gotchas. Basic scoping rules and an understanding of "finally" and "break".