
July 20, 2020
7:52 a.m.
Steven D'Aprano wrote: [...]
In any case, functional languages like Haskell, F# and ML are not the only languages with pattern matching. Non-FP languages like C#, Swift, Rust and Scala have it, and even Java has an extension providing pattern matching: http://tom.loria.fr/wiki/index.php/Main_Page
I'm not against pattern matching at all. I think it's a very nice feature, but that one of its behavior which is variable capturing should be made more explicit, following the rules of the Zen of Python.
It's been sometimes said that functional programmers are smarter, elite programmers a level above the average OOP or procedural programmer, but that's mostly said by functional programmers :-)
I would say there are fewer of them :-) -- Emmanuel