
On Mon, Jan 17, 2022 at 9:58 AM Oscar Benjamin <oscar.j.benjamin@gmail.com> wrote:
On Mon, 17 Jan 2022 at 00:46, Christopher Barker <pythonchb@gmail.com> wrote:
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.
You won't have used one because they have not yet existed (hence this thread).
Although we don't have frozenset literal now, we have frozenset. So we can estimate how frozenset literal is useful by seeing how frozenset is used. Unless how the literal improve codes is demonstrated, I am -0.5 on new literal only for consistency. Regards, -- Inada Naoki <songofacandy@gmail.com>