y = object.x binds a copy of
object.x to y. How do I make bind
The reason for my question is this: To improve readability, I want to do something like this:
function foo(cache) X = cache.X y = cache.y # lots of stuff involving X and y end
The problem is that X or y is quite big and I don’t actually want to copy it (and I would like changes to
X to be reflected in changes to
cache.X) and do not want to clutter my code everywhere with “cache”.