Content deleted Content added
Fix grammar |
No edit summary |
||
Line 1:
'''Uniform Function Call Syntax''' (UFCS) is a programming language feature in [[D (programming language)|D]] that allows any function to be called on an object (as in [[Object-oriented programming]]) as if the function were a method of the object's class.<ref>http://dlang.org/function.html#pseudo-member</ref> UFCS is particularly useful when function calls are chained.<ref>http://ddili.org/ders/d.en/ufcs.html</ref>, behaving similar to pipes, or various dedicated operators available in functional languages for passing values through an expression. It has been proposed for addition to C++ by [[Bjarne Stroustrup]] and Herb Sutter. It allows free-functions to fills a role similar to [[extension method|extension methods]] in some other languages. Another benefit of the method call syntax is use with 'dot-autocomplete' in IDEs, which use type information to show a list of available functions, dependant on the context.
== Examples ==
|