Javascript Try-Catch Performance Vs. Error Checking Code
“Programs must be written for people to read, and only incidentally for machines to execute.” Abelson & Sussman, SICP, preface to the first edition Always aim for readable code. The key thing to remember is: Avoid try-catch in performance-critical functions, and loops Anywhere else they won’t do much harm. Use them wisely, use them when … Read more