▲ | troupo 8 days ago | |||||||
The advantage is that pipes don't care about the type of the return value. Let's say you add a reduce in the middle of that chain. With extension methods that would be the last one you call in the chain. With pipes you'd just pipe the result into the next function | ||||||||
▲ | sandreas 7 days ago | parent [-] | |||||||
Yeah, I agree. That's an advantage of pipes - although much harder to read and write than chained methods in my opinion. The use-case in the article could still be solved easier with extension methods in my opinion :-) | ||||||||
|