5 ms·
Am I the only one annoyed by the fact that the main loop has a series of if..else instead of a giant switch statement? But yes, many people rely on parsers and
by Iv 7y ago
Am I the only one annoyed by the fact that the main loop has a series of if..else instead of a giant switch statement?
But yes, many people rely on parsers and VMs without really knowing how it works and assume some black magic, whereas it can be really simple and elegant.
- lifthrasiir 7y agoIt is self-hosted so having switch in the code means yet another code implementing switch.
- asdasdasdasdwd 7y agoWouldn't the compiler optimize it either way?
- Iv 7y agoHmmm, gcc may be smart enough indeed.