News for hackers. Stuff that matters.
Re:Using the switch(true) pattern in JavaScript by arielserafini on Monday April 12, 2021 @11:29AM (#26780466)
"faster" in which respect?
Re:Using the switch(true) pattern in JavaScript by TheHalfDeafChef on Monday April 12, 2021 @04:00PM (#26784404)
Faster to parse as a developer. I can't speak to whether computationally it is faster.

Additionally, doesn't this somewhat also bring in the methodology of dealing with the error cases first?