codeforboston / cliff-effects

Cliff effects guidance prototype (archived)

Home Page:https://codeforboston.github.io/cliff-effects/#/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Freeze objects that really do need to keep their values the same

knod opened this issue · comments

commented

Like data from programs, non-clone clients, etc.

There is an implementation of a deepFreeze function that has since been deleted from the codebase since it's not being used anymore, but it's still visible here if whoever takes this on wants to use or adapt it. That function returns a frozen clone of the object passed in, rather than freezing the object in-place; that may or may not be desirable here. If we want an in-place freezer, there's a library that does that (have not tested it myself though).