
Jan. 17, 2022
12:43 a.m.
I’m a bit confused — would adding a “literal” form for frozenset provide much, if any, of an optimization? If not, that means it’s only worth doing for convenience. How often do folks need a frozen set literal? I don’t think I’ve ever used one. If we did, then f{‘this’: ‘that’} should make a frozen dict, yes? On Sun, Jan 16, I suggest his goal of a frozenset literal might be better achieved by making 'frozenset' a keyword, much as None and True and False are already keywords. Adding a keyword is a very Big Deal. I don’t think this rises to that level at all. It was done for True and False because having them as non-redefineable names referencing singletons is really helpful. -CHB