3 ms·
Python's pattern matching also isn't an expression, it's a statement and creates bindings that persist outside of the match block! This is a very strange way to
by chlorion 4y ago
Python's pattern matching also isn't an expression, it's a statement and creates bindings that persist outside of the match block! This is a very strange way to do things but python for some reason is allergic to expressions.
After using languages with no statements, going back feels like a pointless restriction in expressiveness. You don't even need a ternary operator when blocks are expressions that can be used for assigning to variables.