C++ UFCS update
Ola Fosheim Grøstad via Digitalmars-d
digitalmars-d at puremagic.com
Tue Feb 16 02:16:14 PST 2016
On Tuesday, 16 February 2016 at 08:24:50 UTC, Ali Çehreli wrote:
> On 02/14/2016 10:12 PM, Walter Bright wrote:
>
>> Wasn't it us who chose the term UFCS?
>
> Can't be. Other languages take features from C++ but never
> admit it. ;)
I think it would be a good idea to drop this microscopic search
for novelty. It is borderline pathetic...
I don't think Stroustrup has said that C++ has introduced novel
features. What C++ has done is to integrate many known features
with few restrictions on how to use them. D has done much of the
same, but with more restrictions.
Other languages have provided various OO syntaxes and extension
methods etc since the 70s or 80s, and it has probably been
discussed for C++ before it was implemented in D.
UFCS/UCS is more a sign of starting with a non-OO language and
adding OO-methods at a later stage. Pure OO languages implement
the global scope as an object and "free functions" are just
members of an outer scope.
More information about the Digitalmars-d
mailing list