3 ms·
Try/catch may be an anti-pattern in a dynamically-typed language, but not in a static-typed language. In static languages they're important and valid because t
by efsavage 15y ago
Try/catch may be an anti-pattern in a dynamically-typed language, but not in a static-typed language. In static languages they're important and valid because they help avoid the "returned a null what?" question.
- apl 15y agoExceptions aren't the one and only solution to 'null' issues in Java et al. http://blog.orbeon.com/2011/04/scalas-optionsomenone.html http://blog.orbeon.com/2011/04/scalas-optionsomenone.html