fast-nail-55400
10/27/2021, 7:30 PMhundreds-father-404
10/27/2021, 7:39 PM__hash__. But to not improperly memoize, in practice, it should also be immutable
This is the idea behind @frozen_after_init decoratorfast-nail-55400
10/27/2021, 7:53 PM__init__ and then freeze the whole data structure at oncefast-nail-55400
10/27/2021, 7:54 PMfast-nail-55400
10/27/2021, 7:55 PMfast-nail-55400
10/27/2021, 7:55 PMflat-zoo-31952
10/27/2021, 8:07 PMfast-nail-55400
10/27/2021, 8:17 PMfast-nail-55400
10/27/2021, 8:18 PMhundreds-father-404
10/27/2021, 8:21 PMOrderedSet then freezing into FrozenOrderedSet. Same with dict and FrozenDict, or list -> tuple
So long as the `@rule`'s boundary is frozen, it's fine to mutate in the bodywitty-crayon-22786
10/27/2021, 8:43 PM__hash__ unless you will be used as parameter in a Getwitty-crayon-22786
10/27/2021, 8:43 PM