python having a match statement now feels like when they added Java-style class keywords to PHP

──────────────────────────────
🌸 many-shaped creature
✨ too many projects
🚀 cannot be stopped
🌙 stayed up too late
eggbug enjoyer
──────────────────────────────
header image: chapter 8 complete from celeste
avatar: made using this character builder
python having a match statement now feels like when they added Java-style class keywords to PHP
maybe it was an odd way for me to phrase it, but i'm talking about that phenomenon where several languages that coexisted with the Java boom in the 90s and 00s, that had their own things going on, spontaneously manifested an almost identical syntax to Java for defining class hierarchies and interfaces and abstract methods and static methods etc., even if it didn't fit the language.
PHP in particular has a class definition syntax that matches Java's almost 1:1, even though half of it doesn't really make sense for a dynamic scripting language
yeah that's why i was confused because it's nearly identical (java doesn't have traits, though! take that, java!)
EDIT: wait no i was confused because i misread the post (or did you edit it?)
ough, PHP has traits now? i see the "take whatever polymorphism technique is chic at the moment" strat is still alive and well haha
i don't think i edited it? i genuinely don't remember haha, i ninja edit for spelling mistakes / grammar pretty frequently
oh dang, i had no idea! i guess i should check the language spec before making snarky comments :p