3 ms·
h(x).f().g() Is also very common and I would say it counts, especially if the language support something like extension methods.
by gpderetta 5y ago
h(x).f().g()
Is also very common and I would say it counts, especially if the language support something like extension methods.
- chriswarbo 5y ago> especially if the language support something like extension methods Extension methods are a bit of a hack (although useful!); a cleaner approach is https://en.wikipedia.org/wiki/Uniform_Function_Call_Syntax https://en.wikipedia.org/wiki/Uniform_Function_Call_Syntax although I've not personally used a language which supports it :(
- gpderetta 5y agoI'm a big fan of UFC myself.
- chromatin 5y agoI don’t know if I would say it’s very common(?) but it was introduced as a named concept (“uniform function call syntax”) AFAIK in D and is also a feature of Nim https://tour.dlang.org/tour/en/gems/uniform-function-call-syntax-ufcs https://tour.dlang.org/tour/en/gems/uniform-function-call-sy...