News for hackers. Stuff that matters.
Re:Golang proposal: container/: generic collection types by tyre on Saturday August 01, 2026 @12:42AM (#49131106)
Python uses comprehensions because whitespace sensitivity was a horrendous language decision, then couldn’t find a way to support multiline lambdas.

Comprehensions are not a well-designed feature but a consequence of poor design.

Re:Golang proposal: container/: generic collection types by pjmlp on Saturday August 01, 2026 @02:44AM (#49131758)
Nope, as someone there at the time, they are an influence how language like Haskell do them.

Which by the way has no issues being whitespace sensitive and having multiline lambdas.

The only reason Python doesn't support them is Guido not wanting to have them.

Re:Golang proposal: container/: generic collection types by wannabe44 on Saturday August 01, 2026 @03:30AM (#49132012)
Comprehensions are way cleaner and more optimizable for the common case.