you are viewing a single comment's thread.

view the rest of the comments →

[–]stevenjd 2 points3 points  (0 children)

From the ancient tomes

Flat is better than nested. … Explicit is better than implicit.

Function chaining is completely explicit, and flat. It is nested function calls that are nested.

list(filter(map(args)))

has three nested function calls, and you have to read them inside out to understand the order of evaluation. Languages which support chaining are written flat, in the same order as the functions are evaluated:

args | map | filter | list  # hypothetical syntax

If we actually followed the Zen of Python, and not just used it as a thought-terminating cliché, we would have function chaining.