Python structural pattern matching morphs again
Python structural pattern matching morphs again
Posted Dec 4, 2020 21:42 UTC (Fri) by Deleted user 129183 (guest, #129183)In reply to: Python structural pattern matching morphs again by dbaker
Parent article: Python structural pattern matching morphs again
I cannot believe that somebody wrote those two words, by each other, unironically.
> rust and zig have pattern matching
Oh, sure, those languages are fashionable right now, but in maybe, 15 years, they and their features will probably go out of fashion and style – just like, 15 years ago every language had to be object-oriented and have exceptions as the preferred method of the error handling, but apparently these things are now Evil, and new languages like Holy Rust do not have them or have them in a greatly reduced form – now procedural programming and result types are The Way.
But Python is a language that’s by now firmly established as one of the “major languages”, and we will probably still use it widely in 15 years (unless it goes the way of Perl/Raku). There’s no real reason to force some feature on it because it’s now fashionable, but when implemented badly, it could be an ugly legacy wart in the near future.