News for hackers. Stuff that matters.
Re:Using the switch(true) pattern in JavaScript by joshAg on Monday April 12, 2021 @11:42PM (#26787908)
agreed, but some people dislike that because you have to have an E_UKNOWN or E_GENERAL or something like that in addition to more specific errors and others dislike it because now there's not something to conveniently store results from called functions in so that they can be checked for errors.

There are no comments on this comment yet.