3 ms·
Yes those are frequently used in imperative languages, but they aren't really as needed in functional styles as functions end up being smaller and more powerful
by BoiledCabbage 3y ago
Yes those are frequently used in imperative languages, but they aren't really as needed in functional styles as functions end up being smaller and more powerful.
The best analogy I can give is if you've used a fluent interface in Java or C# ( like Linq). Take a look at the two larger examples at the bottom of the link. It actually would hurt readability to try to add names for each of those intermediate stages.
And since functions are usually smaller you end up frequently using functions as your readability helpers instead of defaulting to let bindings.
Fluent interface - https://java-design-patterns.com/patterns/fluentinterface/#explanation https://java-design-patterns.com/patterns/fluentinterface/#e...