News for hackers. Stuff that matters.
Re:PEP 308 and why I still hate Python by null0pointer on Thursday March 09, 2017 @09:06PM (#13835746)
I come from a mathematics background and when I first saw comprehensions I really liked them. They read remarkably similar to Set Builder Notation [0]. I think so long as you don't go crazy they are perfectly readable. But at the end of the day the onus is still on the developer to ensure their code is readable.

[0] https://en.wikipedia.org/wiki/Set-builder_notation

Re:PEP 308 and why I still hate Python by ezrast on Thursday March 09, 2017 @10:04PM (#13835990)
Bachelor's in math myself, although my math interests and my programming interests have admittedly (and regrettably) not intersected very much in my career. I do tend to think about problems more "imperatively" in my head and then struggle sometimes to translate those concepts into declarative math notation when doing proofs; if I were able to make that leap more naturally maybe I'd benefit from the notational similarities more.