composablesys / collabs

Collabs library monorepo

Home Page:https://collabs.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SingletonCObject class?

mweidner037 opened this issue · comments

This would be a CObject with a single child. It would permit optimized messages and saves (no name needed), and might simplify subclass implementations.

Perhaps equivalently: think of as a Collab decorator?

E.g. the "layers" often have a single child.

One caution: for classes that might add more children later, this could make Cambria-style versioning more difficult.

This seems like an unnecessary optimization.