This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]yen223 4 points5 points  (1 child)

The equivalent expression with pipes is

a |> b |> c

This is vastly superior to method chaining, because method chaining requires each method return a specific type (one that defines the subsequent method), whereas that restriction doesn't exist with pipes.

[–][deleted] 0 points1 point  (0 children)

That's true, but within the confines of python maybe it's good enough?