this post was submitted on 17 Aug 2023
27 points (96.6% liked)
Programming
17313 readers
206 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities [email protected]
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
The logical conclusion of this is to let the syntax and parser of the language itself be modified by users in a modular fashion :D
So python then. On the first order level, there's operator overriding and duck typing, which achieves this highly modular syntax. But deeper down, there's the ast module that lets you rewrite your own interpreter at runtime and other wacky shit.
Which (if I understand correctly) is almost what Forth does. I've heard it described as "the only syntax in Forth are the blank characters" :).
And the logical conclusion of this is there is a non-zero chance you get to enjoy the opportunity, no, the priviledge to maintain that 100k loc codebase written in someones personal PHP dialect. Lucky you.