PEP 841: Adding Frozen Syntax to Make Immutable Types Optimizable

I think this is a chicken-and-egg problem. If immutable containers do not offer the same level of support as their mutable counterparts, people will be less likely to use them, especially since they share most of the same underlying structure apart from mutation operations.
One of our main goals is therefore to enable the same level of optimization and usage through syntax for immutable containers.

Actually, we had a poll for this `frozenset` and `frozendict` comprehensions - #48 by sobolevn, and I believe that the f prefix would not be a bad choice with the reasons that I listed.

Thanks will do :slight_smile:

1 Like