News for hackers. Stuff that matters.
Re:Language Design: Use 'ident: Type' not 'Type ident' by andreareina on Saturday May 02, 2020 @01:10AM (#23049417)
Python's syntax precludes works against a lot of things, like first-class lambdas, case (yes it can be emulated with if/elif, but it's not the same, even without fallthrough), pattern-matching in general, or assigning the result of a method-chaining pipeline to a variable.

I use python at $dayjob, and I run into the limitations of whitespace as syntax all the time.

Re:Language Design: Use 'ident: Type' not 'Type ident' by klyrs on Saturday May 02, 2020 @12:39PM (#23052899)
Yeah, the switch thing is a mindboggle, but the associated pep makes it very clear that/why the problem is quite unsolvable.

https://www.python.org/dev/peps/pep-3103/

It's quite frustrating as there are a lot of situations where a simple switch would be so nice...