News for hackers. Stuff that matters.
Re:Why I prefer objects over switch statements by vardump on Friday February 22, 2019 @12:47PM (#19227330)
Uh, emulation and scripting language byte code engines? State machines? Filtering?

There are plenty of reasons to iterate a switch statement, even much more than millions of times.

Re:Why I prefer objects over switch statements by Scooty on Friday March 01, 2019 @05:36PM (#19286006)
> emulation and scripting language byte code engines

You get that these are outliers right? The majority of software doesn't need to concern itself with these problems. They're examples of software that deals with analyzing and running other software.

I'm not sure why I'm bothering to respond to these comments. This whole discussion has apparently been system developers telling app developers they need to start micro-optimizing their cold loops because "what if your user clicks the button 12 million times in under a minute".