Daishiman 15 hours ago

This is very nice. The syntax occurs in ways that are consistent with how it's used elsewhere. The desugaring is clear. No weird gotchas. The proposed use cases are very common and actually suffer from there being "more than one way to do it", which goes against the grain of the language. The proposal seems clearer, more concise, and more idiomatic than the alternatives.

I will say that even after using Python for over 15 years, the syntax for nested list comprehensions has a rather... incomprehensible order.

  • asicsp 13 hours ago

    >the syntax for nested list comprehensions has a rather... incomprehensible order

    I remember reading a blog post pointing out that the for-loop order stays the same between comprehensions and normal nested code. You write the outer loop first.