2 ms·
> And I thought that reference counting was a native feature of all languages with a garbage collector. But no, I have to micromanage dependencies myself becaus
by shadowgovt 4y ago
> And I thought that reference counting was a native feature of all languages with a garbage collector. But no, I have to micromanage dependencies myself because you don't know how to do it.
So annoyingly enough... There's not anything inherent to the language that makes it impossible to get a list of closure references for a function, other than it's not something JavaScript exposes. In a hypothetical future version of JS, this could be a first-class feature of the function API.
... because what JavaScript really needs is yet another feature to support one framework's special-caee needs. ;)