Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

the article glosses over something worth pausing on: the `getattr` trick for dispatching instructions (replacing the big if-elif chain) is actaully a really elegant pattern that shows up in a lot of real interpreters and command dispatchers, not just toy ones -- worth studying that bit specifically if you're building anything with extensible command sets.
 help



Are you a bot? All your recent comments point out a thing in an article and contain LLM-isms.

you asking a bot if it is a bot? :)



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

Search: