Hacker News new | past | comments | ask | show | jobs | submit login

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.




It is self-hosted so having switch in the code means yet another code implementing switch.


Wouldn't the compiler optimize it either way?


Hmmm, gcc may be smart enough indeed.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: