News for hackers. Stuff that matters.
Re:Pattern matching accepted for Python by kbenson on Tuesday February 09, 2021 @11:18PM (#26085703)
That saddens me. It's not actually that complicated, but I think Perl's usage numbers have degraded enough that unless you're frequenting one of the online spots where those knowledgeable about the language gather, you're unlikely to encounter them in the wild anymore, and thus aren't getting a useful explanation.

The simple answer that probably would have solved almost all your problems is that you can use the reference syntax for defining things and it will look like and function the same as JavaScript 95% or more of the time, and the only time you'll need to do anything is when passing it to something that expects an actual array or hash. I mean, you can get away with taking JSON and changing colons into fat arrows and booleans into 0 and 1 and it will just work as a Perl data structure as is like 99.99% of the time. Data structure manipulation works similarly as well for the most part.

Re:Pattern matching accepted for Python by singingfish on Wednesday February 10, 2021 @03:43AM (#26086855)
I've always viewed javascript as verbose crippled perl with good vendor support. I mean, `"use strict";` ...
Re:Pattern matching accepted for Python by ghshephard on Wednesday February 10, 2021 @03:11AM (#26086678)
Oh my goodness kbenson - we had this identical conversation 7 years ago on HN. https://news.ycombinator.com/item?id=7869603
Re:Pattern matching accepted for Python by kbenson on Wednesday February 10, 2021 @04:35AM (#26087187)
Ha, I always wondered how long it would take for me to repeat a conversation here with someone! I figured it was only a matter of time. Now I know how much. :)