▲ 6 ▼ Don't use checkErr functions
That saves you two lines every time an error is checked. As an implementation of
checkErr is about five lines, you only need to handle three errors to start saving lines of code. Less code is better, right? I think the cost of writing a little boilerplate far outweigh the problems and limitations of
checkErr, some of which are explained below.
Register to comment or vote on this story