News for hackers. Stuff that matters.
Re:Pattern matching accepted for Python by chriswarbo on Tuesday February 09, 2021 @06:03PM (#26083691)
I wouldn't treat 'evolution' as an inherently good thing; i.e. change for its own sake.

My first thought whenever someone proposes changing a language is "could that be done with a library instead?". If it's possible then I think libraries are preferable to language changes; if it's not possible and we decide to change the language, then it may be better (if possible) to make a change which fixes whatever prevented us from implementing such a library. Only if we can't do that would I resort to adding individual features to the language.

For example, Scheme has really good pattern matching, despite it not being part of the language. In fact, there are so many pattern matching libraries for Scheme that there are now attempts to standardise their APIs https://srfi.schemers.org/srfi-200/srfi-200.html

Re:Pattern matching accepted for Python by lhjn on Tuesday February 09, 2021 @08:02PM (#26084638)
In scheme, or most other Lisps for that matter, you extend the language by writing a library, as the language extension tools are built-in and quite easy to use (macros). Very few other languages give you that kind of power, and certainly not python.