News for hackers. Stuff that matters.
Re:The Performance Impact of C++'s `final` Keyword by smaudet on Tuesday April 23, 2024 @09:17AM (#40131644)
Per my sibling comment, I think the argument is not about speed, but simplicity.

Awkward switch syntax aside, the switch is simpler to reason about. Fundamentally we should strive to keep our code simple to understand and verify, not worry about compiler optimizations (on the first pass).

Re:The Performance Impact of C++'s `final` Keyword by saurik on Tuesday April 23, 2024 @01:25PM (#40134555)
Right, and there I would say we even agree, per my first sentence; however, I wanted to reply not to you, but to doctor_phil, who was explicitly disagreeing about speed.