Clean up fj-kernel
's iter
module
#846
Labels
topic: core
Issues relating to core geometry, operations, algorithms
type: development
Work to ease development or maintenance, without direct effect on features or bugs
The
iter
module infj-kernel
provides infrastructure to iterate over the objects referenced by another object. This is a critical piece of functionality that is used by the validation infrastructure and other code.Unfortunately the code in that module is highly redundant. For each object, most method implementations of the
ObjectIters
look almost exactly the same, because most of those methods just delegate to the corresponding method of the objects being referenced. This results in a lot of code, and a lot of opportunity for subtle errors.I have two ideas for how to address this, but haven't explored any in depth:
ObjectIters
that returns all objects that the implementing object references asdyn ObjectIters
. Then the other methods could get default implementations, based on that method.The text was updated successfully, but these errors were encountered: