Uniform function call syntax: Difference between revisions

Content deleted Content added
Shmup (talk | contribs)
m fixed a typo
added herb-sutter's version of the proposal
Line 3:
 
== C++ proposal ==
It has been proposed (as of 2016) for addition to C++ by [[Bjarne Stroustrup]]<ref>{{cite web|title="UFCS proposal"|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4174.pdf}}</ref> and [[Herb Sutter]]<ref>{{cite web|title="Unified Call Syntax"|url=https://isocpp.org/files/papers/N4165.pdf}}</ref>, to reduce the ambiguous decision between writing free functions and member functions, to simplify the writing of templated code. Many programmers are tempted to write member-functions to get the benefits of the member-function syntax, however this leads to excessive [[Coupling (computer programming)|coupling]] between [[Class (computer programming)|classes]].
 
== Examples ==