Re:Ruby 3.2.0 Is from Another Dimension
by chlorion on Wednesday January 04, 2023 @09:34PM
(#34255170)
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.
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.