Hacker News new | ask | show | jobs
by blueybingo 64 days ago
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.
1 comments

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? :)
You know that Voight-Kampff test of yours? Did you ever take that test yourself?
haha no im not a bot, but starting to realise i sound like one. need to be less cynical.
exactly what the bot would say lol :)
damn brain is becoming bot mush