spydrnet icon indicating copy to clipboard operation
spydrnet copied to clipboard

add_* shortcut

Open thunder-hammer opened this issue 4 years ago • 0 comments

This should be discussed before we implement it. wait to work on this for discussion results to be posted.

The add_* api calls that exist in all of the different classes could be replaced with a simple add call that at least first class components have. behind the scenes these calls could simply sort by the type of the passed in data and then call the corresponding function.

This may be a version 2.0 feature or not a feature depending on perceived merit. definition.add_child and reference should not present an issue but the clarity may be reduced (definition.add(instance)) may be unclear.

thunder-hammer avatar Jun 05 '20 18:06 thunder-hammer