You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The operators >> and << behave different from the rest, as they implicitly return the first result. To me it feels like a design oversight. I've tripped on it twice myself. First time because I assumed >> and << work like > and < operators and second time because I had forgotten that they don't. Also, at least personally, I do often find myself needing to select a group that is not the first one and that degrades the utility value of this operator.
Thoughts?
Changing the behaviour at this point of course shouldn't be taken lightly as it would be a breaking change.
Personally I don't use the select operators much because the order of operations can't be changed which results in having to put parentheses all over the place.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Build123d has handy selector operators as detailed in https://build123d.readthedocs.io/en/latest/key_concepts.html#quick-reference
The operators
>>
and<<
behave different from the rest, as they implicitly return the first result. To me it feels like a design oversight. I've tripped on it twice myself. First time because I assumed>>
and<<
work like>
and<
operators and second time because I had forgotten that they don't. Also, at least personally, I do often find myself needing to select a group that is not the first one and that degrades the utility value of this operator.Thoughts?
Changing the behaviour at this point of course shouldn't be taken lightly as it would be a breaking change.
Beta Was this translation helpful? Give feedback.
All reactions