[Core] Improve UX when defining template of a Component#6161
Conversation
|
Hello, +1 for proposing a path to remove the "template" keyword. |
|
@damienmarchal I see only two options:
Actually, more generally, this PR defines the template parameters as an associative container key-value. And you are right, the user must know the key. But it is also the case for the Data. We found "solutions" for that: documentation (including the examples) and auto-completion. |
|
Third option : We propose a "DataTypeParameters" component, holding all of such parameter for one node, fixing the parameters for all component in this node. Then because it is a component, the user will know where to look for. |
To get rid of the
templatekeyword when defining a Component. Example:By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).
Reviewers will merge this pull-request only if