2019-05-20 |
Paul Boddie |
file
changeset
files
shortlog
|
Experiment with a temporary attribute on objects. This attribute must be cleared
when assignments occur, but it should also be cleared when objects escape from
functions (which is not yet done). Since the motivation for marking objects as
temporary is their re-use in certain operations, the objective is to avoid
objects being used in multiple places and still being marked as temporary and
potentially undergoing re-use/mutation. Perhaps the only way of guaranteeing
exclusive access to an object is if it is provided as a function result and is
immediately passed to a function or operation, with this function either
mutating the object or ensuring its direct propagation to another such function. |
temporary-object-experiment |