Make methods return 'self' to allow method chaining #786
MartinThoma
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
That could be a unusual and possibly confusing API. I've mainly encountered two different kinds of APIs so far:
I wouldn't advice for mixing both. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A user stumbled over this: #460
I would just make all methods returns self + document that the function operates in place.
What do you think @MasterOdin / @sekrause ?
Beta Was this translation helpful? Give feedback.
All reactions