Local<T> should have a lifetime associated with the current LocalScope. However, introducing such a lifetime would very much complicate mess of lifetimes, lots of which are going to conflict. E.g. when a method takes a local and produces a local, the produced local would get its lifetime from the provided local scope, but the provided locals would have a different lifetime. And, there is no guarantee that the lifetime of the local scope is shorter than that of the provided, or the other way around, or that the lifetime of different provided local arguments are anywhere near the same.
Local<T>
should have a lifetime associated with the currentLocalScope
. However, introducing such a lifetime would very much complicate mess of lifetimes, lots of which are going to conflict. E.g. when a method takes a local and produces a local, the produced local would get its lifetime from the provided local scope, but the provided locals would have a different lifetime. And, there is no guarantee that the lifetime of the local scope is shorter than that of the provided, or the other way around, or that the lifetime of different provided local arguments are anywhere near the same.