|
Possibly. But I suspect there may be two slight drawbacks with storing arguments directly:
(1) How does one manage memory? If the parameter table creates a strong reference, the arguments will not be garbage collected. If it’s a weak reference, what does it means for the cache stability?
(2) If parameters are keyed by identity, how does one deal with mutable structures such as, well, tables?