News for hackers. Stuff that matters.
Re:Using the switch(true) pattern in JavaScript by wvenable on Monday April 12, 2021 @06:06PM (#26785768)
If you are using a language with yield you can make this simpler (and more flexible) by using a generator.

There are no comments on this comment yet.