3 ms·
Easy enough to remember because this is the simplest thing the language can do, but yeah, I have no idea if this is the same between popular languages.
by Kinrany 6y ago
Easy enough to remember because this is the simplest thing the language can do, but yeah, I have no idea if this is the same between popular languages.
- int_19h 6y agoIn the non-Boolean case, a common implementation technique for a large switch with sequential values is a jump table. But that's only possible when all case labels are known.