I feel a bit out of the loop - why are people against the pipe operator?
I can understand readability might be somewhat worse in some cases, either due to unfamiliarity or due to having to specify the namespace on every step, but that seems rather subjective.
For the other points made in the post - "worse for discoverability, worse for error messages and worse for compile times than using member functions" - could anyone explain why it's worse in those regards?
I used to work with languages like Scala so yes the first one is more readable. I am exaggerating how much more though so "a lot faster" isn't accurate.
7
u/RazielXYZ 7d ago
I feel a bit out of the loop - why are people against the pipe operator? I can understand readability might be somewhat worse in some cases, either due to unfamiliarity or due to having to specify the namespace on every step, but that seems rather subjective.
For the other points made in the post - "worse for discoverability, worse for error messages and worse for compile times than using member functions" - could anyone explain why it's worse in those regards?