News for hackers. Stuff that matters.
Re:Pattern matching accepted for Python by 0xbadcafebee on Tuesday February 09, 2021 @05:43PM (#26083462)
If developers actually knew what simplicity was they'd stop worshipping it.

Brainfuck is an extremely simple language. I mean, it's perfect. Only 8 instructions! Only 1 pointer! Turing complete! Why isn't everyone writing their code in this language?

A bicycle attached to a wheelbarrow is extremely simple transportation. You can get anywhere you need to go, you can carry heavy loads, it's easy to use, easy to fix, cheap. Why would you use anything else?

Wood is a great building material. You can build a building several stories tall, it's cheap, plentiful, easy to work with. We should just standardize all construction on wood.

Water is the simplest beverage. It's clean, healthy, easy to ship, easy to store. We don't need to drink anything else.

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.
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.