News for hackers. Stuff that matters.
Re:Using the switch(true) pattern in JavaScript by earthboundkid on Monday April 12, 2021 @07:43PM (#26786531)
I see that as a sign that the person learned how to program in the 80s/90s when things were still in a phase of overreaction to the popularity of BASIC and GOTO. GOTO is bad, therefore return is good, and single return is best. Not actually good logic, but that was the thinking at the time.

There are no comments on this comment yet.