Closed rht closed 7 years ago
Optimization to Cython should be done later once the correctness of this modularization has been ensured.
Changing a += against a create allows down cython but is also a bit illogical, because we do not transform money in good or detroy a golf when we sell it.
All the library sees is that money
is a physical good. Either it is implemented as something else, which further complicates the class, or made explicit. This is for consistency sake.
There will be further refactoring to ensure goods creation/destruction is done via
create
/destroy
. There could be a static analysis tool to ensure stock-flow consistency in a model to detect whether the number ofcreate
is balanced by the number ofdestroy
.