4 ms·
> You should categorically not be implementing chaining semantics unless your operations are non-mutating. What if it's a method of the data object?
by theteapot 5y ago
> You should categorically not be implementing chaining semantics unless your operations are non-mutating.
What if it's a method of the data object?
- Brian_K_White 5y agodata should not have methods, but that's a whole other religeous war :)
- nybble41 5y ago> What if it's a method of the data object? Then it should either mutate the object in-place without chaining, or return a new data object with the updated value and leave the original unmodified.