Re:Pattern matching accepted for Python
by chriswarbo on Tuesday February 09, 2021 @06:15PM
(#26083827)
I regularly read cutting edge research papers whose code examples are expressed in lambda calculus, a language from the 1930s with 3 syntax rules and 1 reduction rule.
[ Parent
| on HN ]
Re:Pattern matching accepted for Python
by visarga on Tuesday February 09, 2021 @11:12PM
(#26085667)
Not a powerful argument because in 90 years it's still not mainstream and only exists in papers and blog posts. On the other hand pattern matching is widely used. 'Simple' can be 'complicated' in another way, otherwise we'd prefer to write machine code.
Re:Pattern matching accepted for Python
by chriswarbo on Wednesday February 10, 2021 @04:45AM
(#26087257)
> Not a powerful argument because in 90 years it's still not mainstream and only exists in papers and blog posts
https://docs.python.org/3/reference/expressions.html#lambda
https://262.ecma-international.org/11.0/#sec-arrow-function-...
https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.ht...