Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

  h(x).f().g() 
Is also very common and I would say it counts, especially if the language support something like extension methods.


> 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 although I've not personally used a language which supports it :(


I'm a big fan of UFC myself.


I 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-sy...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: