3 ms·
I recently went looking for a Python implementation of the Javascript convention of operator chaining. In that search, I found an SO answer saying that it's cal
by clebio 11y ago
I recently went looking for a Python implementation of the Javascript convention of operator chaining. In that search, I found an SO answer saying that it's called [fluent interface](https://en.wikipedia.org/wiki/Fluent_interface https://en.wikipedia.org/wiki/Fluent_interface). Is this not the same thing?
- willtim 11y agoThis is indeed how most OO languages implement stream combinators (e.g. C#), but doesn't describe the F# and Clojure examples given.
- clebio 11y agoI admit some degree of ignorance, but the Wikipedia page I linked to has a C# example very similar to Fowler's final C# code: https://en.wikipedia.org/wiki/Fluent_interface#C.23 https://en.wikipedia.org/wiki/Fluent_interface#C.23 Am I missing some subtle difference?