about WeakSets but still have questions. Is it primarily a JS thing? I haven't seen other languages have anything like it
c++ has a standard library with sets too
Not sure if Python has a weak set. If it doesn't, you could definitely emulate it with weak key dict
Обсуждают сегодня