Closed gdementen closed 1 year ago
I have the same opinion as you. I think it's better that users explicitly give a name to objects when creating a Session.
I also think we should really deprecate the syntax:
Session([('axis1', axis1), ('obj2', obj2)])
I did not realize it when I created issue #999, but it strongly pushes in that direction.
This only works for objects with a name attribute, so Axis and Group I think.
Deprecating the feature would mean users (mostly our test suite I think) would have to provide explicit names for those objects too, so instead of writing:
Users would have to give an explicit name, i.e. write:
I don't think I have ever seen this being used (except in our test suite).
The other (completely different) option is to add a name attribute to Array and allow the obj1, obj2 syntax for Arrays when that attribute is set. I am rather in favour of the first option, but wanted to mention the second one for completeness. @alixdamman: what do you think?