220 39542 <CAANG=kVgcf9o1K8dGVKj4_ECQRC_UmJXB=_NFOo=LymMMsP6yQ@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: =?UTF-8?B?R2HFoXBlciBBxb5tYW4=?= <gasper.azman@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Extension methods with a restriction to make it viable
Date: Sat, 4 Aug 2018 12:33:12 +0100
Lines: 586
Approved: news@gmane.org
Message-ID: <CAANG=kVgcf9o1K8dGVKj4_ECQRC_UmJXB=_NFOo=LymMMsP6yQ@mail.gmail.com>
References: <7ce23f53-d00e-45a0-a62b-c42060c5833d@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="0000000000000868a505729a6a53"
X-Trace: blaine.gmane.org 1533382288 1616 195.159.176.226 (4 Aug 2018 11:31:28 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sat, 4 Aug 2018 11:31:28 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDRYVJ6TVYBRBDU6S3NQKGQE54OCFMY@isocpp.org Sat Aug 04 13:31:24 2018
Return-path: <std-proposals+bncBDRYVJ6TVYBRBDU6S3NQKGQE54OCFMY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lj1-f199.google.com ([209.85.208.199])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDRYVJ6TVYBRBDU6S3NQKGQE54OCFMY@isocpp.org>)
	id 1flumK-0000KI-9b
	for gclcip-std-proposals@m.gmane.org; Sat, 04 Aug 2018 13:31:24 +0200
Original-Received: by mail-lj1-f199.google.com with SMTP id z24-v6sf1654672lji.16
        for <gclcip-std-proposals@m.gmane.org>; Sat, 04 Aug 2018 04:33:35 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1533382415; cv=pass;
        d=google.com; s=arc-20160816;
        b=iGpn1a+PEPV7AQoZRRVjtvH4k6YHp99gOkSuSHE0lfufFt8ldJWqCJwYVMYnDpwkK8
         F6Od8qqXRsw+IFZgHt9Sq7mRVWNRNt9jqbvMY4G7GxXca2TAZ7y+lYCaWn10yhQubejh
         6Z0+6O9XMY18EdmEuFNhY2SCBuL8iFFl25/UWdAAdkLGuG72bCy9l5xibtY7vouZm9pZ
         jixJGXMExSCKGarDtLGhl1LUw4gWVlMCfKKmqZ5u6bwd827YHY6De3PVY+YVG/KJord5
         /BDCyo92C3E5da9G82MytXY3Mgw1BqkNot/pROJHNKC6kJf5wq0TrEPggFKlFex7XI1l
         GqHQ==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date
         :from:references:in-reply-to:mime-version:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=dvzRyAqMhP4gVq/Z7YEbbKS8zBeHy1yT+PezopzbSIY=;
        b=xiH/+wovp2GtZpDeIzRzqVfEHGTT5aLc0anLR89yNTBgZRvoFskI12Fs6g16/Z9kBP
         MtnihpbGQFWMuepnXbLE8eEm2CUlRxFXcTcURQb7diLKfQ1q/cA56dL+W0pCJ7UIhZzd
         rOf8fqT/3MPeDWAwbi2IOSyQHoFY3yRKbfmT+qGjsfrhXV8uTq2L4rKJBjkVaiN50N/9
         xxg7/laTYGzLfYjh86SXOt0kBxO+s8tCLGGJ3XMQcE4CmkfLVj7MP7YqfdWv7tdnAhwL
         lalTipc2cxDPKW3VJaASvz4mA6UH9VifIqHot0MRv2ETraCsAktxKH3RwZpGj9eB6wf3
         YF/Q==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=OdgAiGHE;
       spf=pass (google.com: domain of gasper.azman@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=gasper.azman@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=dvzRyAqMhP4gVq/Z7YEbbKS8zBeHy1yT+PezopzbSIY=;
        b=Wnug2C44hpgq6nhNhQbHWiJ/Y2qirA9YZ6hucSvdlgBG4QcijOCqKwzNeZ5v0dVrLT
         TbFuAOFJQ2i6Rf1v0jcnK5r8b/l2kF0ZIxtihseLpu4yxgJmdAJ+FjGI5WRdDC9l8U9q
         o9vkMbk23v37zjaMqjtC2T1zWmE+/IHkscvMZ0MQ8JUQXHAuJjkKsT+ly3mHRzPQMhW6
         kgOMuakbTaVonIirgzIgNeNCiwXBFNwFt7N4+ipZqnBON3zsn3oMuvb9sf6V2uUEvaMB
         YHEPP6c43J3teqornujsHAVxm591nTg7b/6PD/JxDvUwvHVecGXu/4XPyQsTmqk2Co6P
         GfMg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:in-reply-to:references:from:date
         :message-id:subject:to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=dvzRyAqMhP4gVq/Z7YEbbKS8zBeHy1yT+PezopzbSIY=;
        b=Oxh7dWRtehJ4rDd/fCAgYN4pMLcwlVjgVuDb+DpNNrU5VEFxJctPvJVbRK+KoJYYAl
         1yXaa79gnKb29lc9uwjPB2yzKlUK3Y8OlIGZnNws1xIpHApC3QnxMErxxy3AWVaWNERd
         HQqJ7Uk7z0cqMTHylm0Pq2qydiofUhOo8Wau18GBszb05VAS4x84yI7x/Omh4ZHqlf6m
         mbsUX85IqKTl/Gqnbe4F0wIskx2gEmombTG+6do1hjtVB6r7i3EOeJxpt5fZbkwaNWrU
         h0+jJfYcd4sU+92muWrroEw4rx0KnnILQTIT8p1buxEDEU1ejZvM7/v0Ol9HvSXCUpxl
         Ts4g==
X-Gm-Message-State: AOUpUlFWnuDYk1Fh45IeHFnpUlBzubN6EJkbFSGghM72LB4ulzmuQKa9
	+bOdsJnscppPBsP5cdM/fCEm7w==
X-Google-Smtp-Source: AAOMgpcOnoe3sRyeFd1KDWKnvXB1n1WxltLtH/I3A1DjKstUF6ogFKmqlD9eNlxqg+oDM3+06t+yPw==
X-Received: by 2002:a2e:850e:: with SMTP id j14-v6mr512476lji.30.1533382415169;
        Sat, 04 Aug 2018 04:33:35 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a2e:87c7:: with SMTP id v7-v6ls778013ljj.7.gmail; Sat, 04
 Aug 2018 04:33:33 -0700 (PDT)
X-Received: by 2002:a2e:96d8:: with SMTP id d24-v6mr8685906ljj.50.1533382413516;
        Sat, 04 Aug 2018 04:33:33 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1533382413; cv=none;
        d=google.com; s=arc-20160816;
        b=Py4dvyFaTpTR6u3A4vCZ0+YaMZNjx3AU4WYbiQQ0DtKHdTQWPlH+csvBWIQGcALS5v
         LYj89jwo6y+OfENd22ZnQkkBGtcuKwsyzoMkMwXDcMcZNC6X9dU6ZYnSxeYhmTtJ3WyH
         lnzFcltier9F9zOPIZQxgPYZU3cErRKTZF5Wbjao3U4kOAIblo1IrXvW1SC1M6ArzRVx
         rqE8xQt8hVu/kK8dLy3eb2hsQ6QKmrfe7UqLPRZBmb7820U7/nnsrCTNg0BpDUBmqxSo
         uULFORjoZrxWyafyyTuT+knRNRrCkwd6zpSaGqQWopG5xOvX6l2jW+wAFvRnf+N/v2yq
         +pKg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:subject:message-id:date:from:references:in-reply-to:mime-version
         :dkim-signature:arc-authentication-results;
        bh=AsBL9oM8PtORO5S7eLSVbiZWrlTIlMlxETsATiBAPrQ=;
        b=dQU91makWE4E32qTyQpvG5XNHTJsVnWfpJ4J05bU/PncR0GwnWYWLIRpa404nM9/CH
         1JCtNARljAt9Yvc6ZN6zOmUQnoWNpY7u2BF7FGFSzrHN0V0nXqHiBGQjLCAtZ4X2VojG
         w7thP0hd5OmSyHhheZuWc5m8KZTNDj3jzfp0m/gZXsv2cc0PO7FR8b732ABkuxwAXNGl
         tJmocDUIdcNqsMyO0dDpzF1q8e9xVDR2un1y6RX5QOmJvPKDWFGRXyLoC+x/gepmo6GQ
         dT65pmrRz0JAFFcwtFnJnUq2PcaLbqNaw6lt96GJJ+XhW0QpOGdyaQSKJiFjgbCH8v+E
         /TmA==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=OdgAiGHE;
       spf=pass (google.com: domain of gasper.azman@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=gasper.azman@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Original-Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41])
        by mx.google.com with SMTPS id u12-v6sor1549205ljh.65.2018.08.04.04.33.33
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Sat, 04 Aug 2018 04:33:33 -0700 (PDT)
Received-SPF: pass (google.com: domain of gasper.azman@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 2002:a2e:869a:: with SMTP id l26-v6mr8453636lji.48.1533382413017;
 Sat, 04 Aug 2018 04:33:33 -0700 (PDT)
Original-Received: by 2002:ab3:416:0:0:0:0:0 with HTTP; Sat, 4 Aug 2018 04:33:12 -0700 (PDT)
In-Reply-To: <7ce23f53-d00e-45a0-a62b-c42060c5833d@isocpp.org>
X-Original-Sender: gasper.azman@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=OdgAiGHE;       spf=pass
 (google.com: domain of gasper.azman@gmail.com designates 209.85.220.41 as
 permitted sender) smtp.mailfrom=gasper.azman@gmail.com;       dmarc=pass
 (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: std-proposals@isocpp.org
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:39542
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/39542>

--0000000000000868a505729a6a53
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi Justin,

I'm posting just to say I will address this as I come back from holiday, in
about a week and a half. It's a very interesting take - but needs more
careful consideration than I can afford right now.

Thanks for your mention!

Ga=C5=A1per

On Sat, Aug 4, 2018 at 7:25 AM, Justin Bassett <jbassett271@gmail.com>
wrote:

> Seeing as the trailing version of UFCS will never happen (x.foo() meaning
> foo(x)) due to the API compatibility nightmare it creates, I would like
> to resurrect extension methods.
>
> Extension methods are clearly very desired, seeing as it has been brought
> up many times:
>
>    - Have "extension methods" been proposed for C++1y? (or any previous
>    standard)
>    <https://groups.google.com/a/isocpp.org/d/msg/std-proposals/17tP4GJbYa=
I/KkFBl6izfpAJ>
>    - Extension methods for C++
>    <https://groups.google.com/a/isocpp.org/d/msg/std-proposals/A32ndecDoV=
A/pYARFXCLBAAJ>
>    - extention methods or UFCS
>    <https://groups.google.com/a/isocpp.org/d/msg/std-proposals/fa42g-XAeD=
4/6ATqFHNQZUEJ>
>     [sic]
>    - http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0079r0.pdf
>
> The API compatibility problems arise by allowing extension methods to be
> added by the user rather than restricting them to the library author. I
> propose adding extension methods, but restricting them such that only the
> library author can add them.
>
>
> Currently, postfix function calls are restricted to member functions or
> imitated via operator overloading like Ranges. Both of these solutions ha=
ve
> their problems:
>
>    - Member functions apply only the the specific type. If I write
>    `Foo::member_function()`, it can only be called on objects of type `Fo=
o`,
>    not of type `Bar`. If I want to be able to call it on `Bar`, I need to=
 do a
>    lot of work to make it scale to the other types in the library
>    - Member functions can't be extended by users of the library. Using
>    Ranges as an example, the user can't add `my_fancy_algorithm()` as a m=
ember
>    function.
>
> Concerning Ranges pipe operator:
>
>    - It would be harder to produce good intellisense for | as contrasted
>    with . , as there are more things to potentially consider.
>    - Possible affect on compile times (not measured, this can also be
>    completely wrong)
>    - Each member of a chain has to be namespace qualified: myRange |
>    ranges::transform(...) | ranges::accumulate(...) . Using declarations
>    are not a viable solution; it's too much to require a using declaratio=
n for
>    each function. Using directives are glob imports, so they come with al=
l the
>    problems of glob imports.
>    - There's a wtf moment for someone unfamiliar with this usage of the
>    bitwise or operator. Once taught to think about it as a unix pipe, one=
 can
>    be more comfortable with it, but personally I've never grown fond of i=
t.
>
> Note: I am using Ranges as an example, but that doesn't mean I think that
> Ranges should be delayed. I just think it makes for good examples.
>
> I much prefer reading myRange.transform(...).accumulate(...), but I
> recognize that using member functions just doesn't work here. That's why =
I
> claim that extension methods are a better solution.
>
>
> With extension methods, I can write myRange.transform(...).my_
> fancy_algorithm(...).accumulate(...) rather than myRange |
> ranges::transform(...) | my_ns::my_fancy_algorithm(...) |
> ranges::accumulate(...)
>
> The biggest caveat of extension methods is that library authors lose
> control over what can come after the . . As a preliminary proposal on a
> restriction that restricts extension methods to library authors, let's
> choose the restriction that extension methods must be findable via ADL.
> Further, to avoid conflicts with free functions, let's consider all
> .foo(...) functions (whether member or extension methods) separate from
> free functions when performing overload resolution.
>
> Arbitrary syntax (considering the "deducing this" proposal, this should
> probably mimic the syntax decided for that):
>
> namespace ns::ranges {
>
> struct adl_tag {};
>
> template <typename Range>
> struct view {
>     auto begin() const;
>     auto end() const;
>     // ...
> };
>
> // ...
>
> template <typename T, typename F>
> auto transform(T&& this self, F&& fn) {
>     // ...
> }
>
> // ...
>
> }
>
> // Usage:
>
> ns::ranges::view(myRange)
>     .transform(...)
>     .accumulate(...);
>
> // Extending with my own algorithms:
>
> namespace user {
>
> template <typename Range>
> struct my_view
>     : private ns::ranges::adl_tag // allow ADL to look into ns::ranges
> {
>     // ...
> };
>
> template <typename T, typename F>
> auto my_fancy_algorithm(T&& this self, F&& fn) {
>     // ...
> }
>
> }
>
> // Usage:
>
> user::my_view(myRange)
>     .transform(...)
>     // Barring type erasure, we can still find my_fancy_algorithm since
> the
>     // user::my_view type is encoded into the template type somewhere
>     .my_fancy_algorithm(...)
>     .accumulate(...);
>
>
> Problems that have yet to be addressed:
>
>    - In the definition of a class method, does this->foo(...) consider
>    extension methods in overload resolution? Why or why not?
>    - Outside of the definition of a class method, does foo.bar(...)
>    consider both extension methods and member functions in overload
>    resolution? Why or why not? (I think it should overload both; if the m=
ember
>    function doesn't exist, it should be able to fall back on extension me=
thods)
>    - Should qualified function calls be allowed? That is, should I be
>    able to write foo.std::ranges::transform(...)? This would be
>    consistent with member functions; I can already write
>    string.std::string::size(). If we allow this, should this be able to
>    call extension methods from arbitrary namespaces, not just ones that c=
an be
>    found via ADL?
>    - Is this a reasonable restriction level? If the library implementer
>    does not put all the extension methods in their own namespace with a
>    wrapper that brings them into context, it could get out of hand fast.
>    Granted, this would be no different from using unqualified prefix func=
tion
>    calls.
>
> --
> You received this message because you are subscribed to the Google Groups
> "ISO C++ Standard - Future Proposals" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to std-proposals+unsubscribe@isocpp.org.
> To post to this group, send email to std-proposals@isocpp.org.
> To view this discussion on the web visit https://groups.google.com/a/
> isocpp.org/d/msgid/std-proposals/7ce23f53-d00e-45a0-
> a62b-c42060c5833d%40isocpp.org
> <https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/7ce23f53-d0=
0e-45a0-a62b-c42060c5833d%40isocpp.org?utm_medium=3Demail&utm_source=3Dfoot=
er>
> .
>

--=20
You received this message because you are subscribed to the Google Groups "=
ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp=
..org/d/msgid/std-proposals/CAANG%3DkVgcf9o1K8dGVKj4_ECQRC_UmJXB%3D_NFOo%3DL=
ymMMsP6yQ%40mail.gmail.com.

--0000000000000868a505729a6a53
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi Justin,<div><br></div><div>I&#39;m posting just to say =
I will address this as I come back from holiday, in about a week and a half=
.. It&#39;s a very interesting take - but needs more careful consideration t=
han I can afford right now.</div><div><br></div><div>Thanks for your mentio=
n!</div><div><br></div><div>Ga=C5=A1per</div></div><div class=3D"gmail_extr=
a"><br><div class=3D"gmail_quote">On Sat, Aug 4, 2018 at 7:25 AM, Justin Ba=
ssett <span dir=3D"ltr">&lt;<a href=3D"mailto:jbassett271@gmail.com" target=
=3D"_blank">jbassett271@gmail.com</a>&gt;</span> wrote:<br><blockquote clas=
s=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pad=
ding-left:1ex"><div dir=3D"ltr">Seeing as the trailing version of UFCS will=
 never happen (<font face=3D"courier new, monospace">x.foo()</font> meaning=
 <font face=3D"courier new, monospace">foo(x)</font>) due to the API compat=
ibility nightmare it creates, I would like to resurrect extension methods.<=
div><br></div><div>Extension methods are clearly very desired, seeing as it=
 has been brought up many times:</div><div><ul><li><a href=3D"https://group=
s.google.com/a/isocpp.org/d/msg/std-proposals/17tP4GJbYaI/KkFBl6izfpAJ" tar=
get=3D"_blank">Have &quot;extension methods&quot; been proposed for C++1y? =
(or any previous standard)</a><br></li><li><a href=3D"https://groups.google=
..com/a/isocpp.org/d/msg/std-proposals/A32ndecDoVA/pYARFXCLBAAJ" target=3D"_=
blank">Extension methods for C++</a><br></li><li><a href=3D"https://groups.=
google.com/a/isocpp.org/d/msg/std-proposals/fa42g-XAeD4/6ATqFHNQZUEJ" targe=
t=3D"_blank">extention methods or UFCS</a>=C2=A0[sic]<br></li><li><a href=
=3D"http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0079r0.pdf" ta=
rget=3D"_blank">http://www.open-std.org/jtc1/<wbr>sc22/wg21/docs/papers/201=
5/<wbr>p0079r0.pdf</a><br></li></ul><div>The API compatibility problems ari=
se by allowing extension methods to be added by the user rather than restri=
cting them to the library author. I propose adding extension methods, but r=
estricting them such that only the library author can add them.</div></div>=
<div><br><br></div><div>Currently, postfix function calls are restricted to=
 member functions or imitated via operator overloading like Ranges. Both of=
 these solutions have their problems:</div><div><ul><li>Member functions ap=
ply only the the specific type. If I write `Foo::member_function()`, it can=
 only be called on objects of type `Foo`, not of type `Bar`. If I want to b=
e able to call it on `Bar`, I need to do a lot of work to make it scale to =
the other types in the library</li><li>Member functions can&#39;t be extend=
ed by users of the library. Using Ranges as an example, the user can&#39;t =
add `my_fancy_algorithm()` as a member function.</li></ul><div>Concerning R=
anges pipe operator:</div></div><div><ul><li>It would be harder to produce =
good intellisense for=C2=A0<font face=3D"courier new, monospace">|</font> a=
s contrasted with=C2=A0<font face=3D"courier new, monospace">.</font>=C2=A0=
, as there are more things to potentially consider.</li><li>Possible affect=
 on compile times (not measured, this can also be completely wrong)</li><li=
>Each member of a chain has to be namespace qualified: <font face=3D"courie=
r new, monospace">myRange | ranges::transform(...) | ranges::accumulate(...=
)</font> . Using declarations are not a viable solution; it&#39;s too much =
to require a using declaration for each function. Using directives are glob=
 imports, so they come with all the problems of glob imports.</li><li>There=
&#39;s a wtf moment for someone unfamiliar with this usage of the bitwise o=
r operator. Once taught to think about it as a unix pipe, one can be more c=
omfortable with it, but personally I&#39;ve never grown fond of it.</li></u=
l></div><div>Note: I am using Ranges as an example, but that doesn&#39;t me=
an I think that Ranges should be delayed. I just think it makes for good ex=
amples.<br></div><div><br></div><div>I much prefer reading <font face=3D"co=
urier new, monospace">myRange.transform(...).<wbr>accumulate(...)</font><fo=
nt face=3D"arial, sans-serif">, but I recognize that using member functions=
 just doesn&#39;t work here. That&#39;s why I claim that extension methods =
are a better solution.</font></div><div><font face=3D"arial, sans-serif"><b=
r></font></div><div><br></div><div>With extension methods, I can write <fon=
t face=3D"courier new, monospace">myRange.transform(...).my_<wbr>fancy_algo=
rithm(...).<wbr>accumulate(...)</font> rather than=C2=A0<font face=3D"couri=
er new, monospace">myRange | ranges::transform(...) | my_ns::my_fancy_algor=
ithm(...) | ranges::accumulate(...)</font></div><div><font face=3D"courier =
new, monospace"><br></font></div><div><font face=3D"arial, sans-serif">The =
biggest caveat=C2=A0of extension methods is that library authors lose contr=
ol over what can come after the </font><font face=3D"courier new, monospace=
">.</font><font face=3D"arial, sans-serif"> . As a preliminary proposal on =
a restriction that restricts extension methods to library authors, let&#39;=
s choose the restriction that extension methods must be findable via ADL. F=
urther, to avoid conflicts with free functions, let&#39;s consider all </fo=
nt><font face=3D"courier new, monospace">.foo(...)</font><font face=3D"aria=
l, sans-serif"> functions (whether member or extension methods) separate fr=
om free functions when performing overload resolution.</font></div><div><fo=
nt face=3D"arial, sans-serif"><br></font></div><div><font face=3D"arial, sa=
ns-serif">Arbitrary syntax (considering the &quot;deducing this&quot; propo=
sal, this should probably mimic the syntax decided for that):</font></div><=
div><font face=3D"arial, sans-serif"><br></font></div><div><div class=3D"m_=
-7692250097086650299prettyprint" style=3D"background-color:rgb(250,250,250)=
;border-color:rgb(187,187,187);border-style:solid;border-width:1px;word-wra=
p:break-word;font-family:arial,sans-serif"><code class=3D"m_-76922500970866=
50299prettyprint"><div class=3D"m_-7692250097086650299subprettyprint"><span=
 style=3D"color:#008" class=3D"m_-7692250097086650299styled-by-prettify">na=
mespace</span><span style=3D"color:#000" class=3D"m_-7692250097086650299sty=
led-by-prettify"> ns</span><span style=3D"color:#660" class=3D"m_-769225009=
7086650299styled-by-prettify">::</span><span style=3D"color:#000" class=3D"=
m_-7692250097086650299styled-by-prettify">ranges </span><span style=3D"colo=
r:#660" class=3D"m_-7692250097086650299styled-by-prettify">{</span><span st=
yle=3D"color:#000" class=3D"m_-7692250097086650299styled-by-prettify"><br><=
br></span><span style=3D"color:#008" class=3D"m_-7692250097086650299styled-=
by-prettify">struct</span><span style=3D"color:#000" class=3D"m_-7692250097=
086650299styled-by-prettify"> adl_tag </span><span style=3D"color:#660" cla=
ss=3D"m_-7692250097086650299styled-by-prettify">{};</span><span style=3D"co=
lor:#000" class=3D"m_-7692250097086650299styled-by-prettify"><br><br></span=
><span style=3D"color:#008" class=3D"m_-7692250097086650299styled-by-pretti=
fy">template</span><span style=3D"color:#000" class=3D"m_-76922500970866502=
99styled-by-prettify"> </span><span style=3D"color:#660" class=3D"m_-769225=
0097086650299styled-by-prettify">&lt;</span><span style=3D"color:#008" clas=
s=3D"m_-7692250097086650299styled-by-prettify">typename</span><span style=
=3D"color:#000" class=3D"m_-7692250097086650299styled-by-prettify"> </span>=
<span style=3D"color:#606" class=3D"m_-7692250097086650299styled-by-prettif=
y">Range</span><span style=3D"color:#660" class=3D"m_-7692250097086650299st=
yled-by-prettify">&gt;</span><span style=3D"color:#000" class=3D"m_-7692250=
097086650299styled-by-prettify"><br></span><span style=3D"color:#008" class=
=3D"m_-7692250097086650299styled-by-prettify">struct</span><span style=3D"c=
olor:#000" class=3D"m_-7692250097086650299styled-by-prettify"> view </span>=
<span style=3D"color:#660" class=3D"m_-7692250097086650299styled-by-prettif=
y">{</span><span style=3D"color:#000" class=3D"m_-7692250097086650299styled=
-by-prettify"><br>=C2=A0 =C2=A0 </span><span style=3D"color:#008" class=3D"=
m_-7692250097086650299styled-by-prettify">auto</span><span style=3D"color:#=
000" class=3D"m_-7692250097086650299styled-by-prettify"> </span><span style=
=3D"color:#008" class=3D"m_-7692250097086650299styled-by-prettify">begin</s=
pan><span style=3D"color:#660" class=3D"m_-7692250097086650299styled-by-pre=
ttify">()</span><span style=3D"color:#000" class=3D"m_-7692250097086650299s=
tyled-by-prettify"> </span><span style=3D"color:#008" class=3D"m_-769225009=
7086650299styled-by-prettify">const</span><span style=3D"color:#660" class=
=3D"m_-7692250097086650299styled-by-prettify">;</span><span style=3D"color:=
#000" class=3D"m_-7692250097086650299styled-by-prettify"><br>=C2=A0 =C2=A0 =
</span><span style=3D"color:#008" class=3D"m_-7692250097086650299styled-by-=
prettify">auto</span><span style=3D"color:#000" class=3D"m_-769225009708665=
0299styled-by-prettify"> </span><span style=3D"color:#008" class=3D"m_-7692=
250097086650299styled-by-prettify">end</span><span style=3D"color:#660" cla=
ss=3D"m_-7692250097086650299styled-by-prettify">()</span><span style=3D"col=
or:#000" class=3D"m_-7692250097086650299styled-by-prettify"> </span><span s=
tyle=3D"color:#008" class=3D"m_-7692250097086650299styled-by-prettify">cons=
t</span><span style=3D"color:#660" class=3D"m_-7692250097086650299styled-by=
-prettify">;</span><span style=3D"color:#000" class=3D"m_-76922500970866502=
99styled-by-prettify"><br>=C2=A0 =C2=A0 </span><span style=3D"color:#800" c=
lass=3D"m_-7692250097086650299styled-by-prettify">// ...</span><span style=
=3D"color:#000" class=3D"m_-7692250097086650299styled-by-prettify"><br></sp=
an><span style=3D"color:#660" class=3D"m_-7692250097086650299styled-by-pret=
tify">};</span><span style=3D"color:#000" class=3D"m_-7692250097086650299st=
yled-by-prettify"><br><br></span><span style=3D"color:#800" class=3D"m_-769=
2250097086650299styled-by-prettify">// ...</span><span style=3D"color:#000"=
 class=3D"m_-7692250097086650299styled-by-prettify"><br><br></span><span st=
yle=3D"color:#008" class=3D"m_-7692250097086650299styled-by-prettify">templ=
ate</span><span style=3D"color:#000" class=3D"m_-7692250097086650299styled-=
by-prettify"> </span><span style=3D"color:#660" class=3D"m_-769225009708665=
0299styled-by-prettify">&lt;</span><span style=3D"color:#008" class=3D"m_-7=
692250097086650299styled-by-prettify">typename</span><span style=3D"color:#=
000" class=3D"m_-7692250097086650299styled-by-prettify"> T</span><span styl=
e=3D"color:#660" class=3D"m_-7692250097086650299styled-by-prettify">,</span=
><span style=3D"color:#000" class=3D"m_-7692250097086650299styled-by-pretti=
fy"> </span><span style=3D"color:#008" class=3D"m_-7692250097086650299style=
d-by-prettify">typename</span><span style=3D"color:#000" class=3D"m_-769225=
0097086650299styled-by-prettify"> F</span><span style=3D"color:#660" class=
=3D"m_-7692250097086650299styled-by-prettify">&gt;</span><span style=3D"col=
or:#000" class=3D"m_-7692250097086650299styled-by-prettify"><br></span><spa=
n style=3D"color:#008" class=3D"m_-7692250097086650299styled-by-prettify">a=
uto</span><span style=3D"color:#000" class=3D"m_-7692250097086650299styled-=
by-prettify"> transform</span><span style=3D"color:#660" class=3D"m_-769225=
0097086650299styled-by-prettify">(</span><span style=3D"color:#000" class=
=3D"m_-7692250097086650299styled-by-prettify">T</span><span style=3D"color:=
#660" class=3D"m_-7692250097086650299styled-by-prettify">&amp;&amp;</span><=
span style=3D"color:#000" class=3D"m_-7692250097086650299styled-by-prettify=
"> </span><span style=3D"color:#008" class=3D"m_-7692250097086650299styled-=
by-prettify">this</span><span style=3D"color:#000" class=3D"m_-769225009708=
6650299styled-by-prettify"> </span><span style=3D"color:#008" class=3D"m_-7=
692250097086650299styled-by-prettify">self</span><span style=3D"color:#660"=
 class=3D"m_-7692250097086650299styled-by-prettify">,</span><span style=3D"=
color:#000" class=3D"m_-7692250097086650299styled-by-prettify"> F</span><sp=
an style=3D"color:#660" class=3D"m_-7692250097086650299styled-by-prettify">=
&amp;&amp;</span><span style=3D"color:#000" class=3D"m_-7692250097086650299=
styled-by-prettify"> fn</span><span style=3D"color:#660" class=3D"m_-769225=
0097086650299styled-by-prettify">)</span><span style=3D"color:#000" class=
=3D"m_-7692250097086650299styled-by-prettify"> </span><span style=3D"color:=
#660" class=3D"m_-7692250097086650299styled-by-prettify">{</span><span styl=
e=3D"color:#000" class=3D"m_-7692250097086650299styled-by-prettify"><br>=C2=
=A0 =C2=A0 </span><span style=3D"color:#800" class=3D"m_-769225009708665029=
9styled-by-prettify">// ...</span><span style=3D"color:#000" class=3D"m_-76=
92250097086650299styled-by-prettify"><br></span><span style=3D"color:#660" =
class=3D"m_-7692250097086650299styled-by-prettify">}</span><span style=3D"c=
olor:#000" class=3D"m_-7692250097086650299styled-by-prettify"><br><br></spa=
n><span style=3D"color:#800" class=3D"m_-7692250097086650299styled-by-prett=
ify">// ...</span><span style=3D"color:#000" class=3D"m_-769225009708665029=
9styled-by-prettify"><br><br></span><span style=3D"color:#660" class=3D"m_-=
7692250097086650299styled-by-prettify">}</span><span style=3D"color:#000" c=
lass=3D"m_-7692250097086650299styled-by-prettify"><br><br></span><span styl=
e=3D"color:#800" class=3D"m_-7692250097086650299styled-by-prettify">// Usag=
e:</span><span style=3D"color:#000" class=3D"m_-7692250097086650299styled-b=
y-prettify"><br><br>ns</span><span style=3D"color:#660" class=3D"m_-7692250=
097086650299styled-by-prettify">::</span><span style=3D"color:#000" class=
=3D"m_-7692250097086650299styled-by-prettify">ranges</span><span style=3D"c=
olor:#660" class=3D"m_-7692250097086650299styled-by-prettify">::</span><spa=
n style=3D"color:#000" class=3D"m_-7692250097086650299styled-by-prettify">v=
iew</span><span style=3D"color:#660" class=3D"m_-7692250097086650299styled-=
by-prettify">(</span><span style=3D"color:#000" class=3D"m_-769225009708665=
0299styled-by-prettify">myRange</span><span style=3D"color:#660" class=3D"m=
_-7692250097086650299styled-by-prettify">)</span><span style=3D"color:#000"=
 class=3D"m_-7692250097086650299styled-by-prettify"><br>=C2=A0 =C2=A0 </spa=
n><span style=3D"color:#660" class=3D"m_-7692250097086650299styled-by-prett=
ify">.</span><span style=3D"color:#000" class=3D"m_-7692250097086650299styl=
ed-by-prettify">transform</span><span style=3D"color:#660" class=3D"m_-7692=
250097086650299styled-by-prettify">(...)</span><span style=3D"color:#000" c=
lass=3D"m_-7692250097086650299styled-by-prettify"><br>=C2=A0 =C2=A0 </span>=
<span style=3D"color:#660" class=3D"m_-7692250097086650299styled-by-prettif=
y">.</span><span style=3D"color:#000" class=3D"m_-7692250097086650299styled=
-by-prettify">accumulate</span><span style=3D"color:#660" class=3D"m_-76922=
50097086650299styled-by-prettify">(...);</span><span style=3D"color:#000" c=
lass=3D"m_-7692250097086650299styled-by-prettify"><br><br></span><span styl=
e=3D"color:#800" class=3D"m_-7692250097086650299styled-by-prettify">// Exte=
nding with my own algorithms:</span><span style=3D"color:#000" class=3D"m_-=
7692250097086650299styled-by-prettify"><br><br></span><span style=3D"color:=
#008" class=3D"m_-7692250097086650299styled-by-prettify">namespace</span><s=
pan style=3D"color:#000" class=3D"m_-7692250097086650299styled-by-prettify"=
> user </span><span style=3D"color:#660" class=3D"m_-7692250097086650299sty=
led-by-prettify">{</span><span style=3D"color:#000" class=3D"m_-76922500970=
86650299styled-by-prettify"><br><br></span><span style=3D"color:#008" class=
=3D"m_-7692250097086650299styled-by-prettify">template</span><span style=3D=
"color:#000" class=3D"m_-7692250097086650299styled-by-prettify"> </span><sp=
an style=3D"color:#660" class=3D"m_-7692250097086650299styled-by-prettify">=
&lt;</span><span style=3D"color:#008" class=3D"m_-7692250097086650299styled=
-by-prettify">typename</span><span style=3D"color:#000" class=3D"m_-7692250=
097086650299styled-by-prettify"> </span><span style=3D"color:#606" class=3D=
"m_-7692250097086650299styled-by-prettify">Range</span><span style=3D"color=
:#660" class=3D"m_-7692250097086650299styled-by-prettify">&gt;</span><span =
style=3D"color:#000" class=3D"m_-7692250097086650299styled-by-prettify"><br=
></span><span style=3D"color:#008" class=3D"m_-7692250097086650299styled-by=
-prettify">struct</span><span style=3D"color:#000" class=3D"m_-769225009708=
6650299styled-by-prettify"> my_view<br>=C2=A0 =C2=A0 </span><span style=3D"=
color:#660" class=3D"m_-7692250097086650299styled-by-prettify">:</span><spa=
n style=3D"color:#000" class=3D"m_-7692250097086650299styled-by-prettify"> =
</span><span style=3D"color:#008" class=3D"m_-7692250097086650299styled-by-=
prettify">private</span><span style=3D"color:#000" class=3D"m_-769225009708=
6650299styled-by-prettify"> ns</span><span style=3D"color:#660" class=3D"m_=
-7692250097086650299styled-by-prettify">::</span><span style=3D"color:#000"=
 class=3D"m_-7692250097086650299styled-by-prettify">ranges</span><span styl=
e=3D"color:#660" class=3D"m_-7692250097086650299styled-by-prettify">::</spa=
n><span style=3D"color:#000" class=3D"m_-7692250097086650299styled-by-prett=
ify">adl_tag </span><span style=3D"color:#800" class=3D"m_-7692250097086650=
299styled-by-prettify">// allow ADL to look into ns::ranges</span><span sty=
le=3D"color:#000" class=3D"m_-7692250097086650299styled-by-prettify"><br></=
span><span style=3D"color:#660" class=3D"m_-7692250097086650299styled-by-pr=
ettify">{</span><span style=3D"color:#000" class=3D"m_-7692250097086650299s=
tyled-by-prettify"><br>=C2=A0 =C2=A0 </span><span style=3D"color:#800" clas=
s=3D"m_-7692250097086650299styled-by-prettify">// ...</span><span style=3D"=
color:#000" class=3D"m_-7692250097086650299styled-by-prettify"><br></span><=
span style=3D"color:#660" class=3D"m_-7692250097086650299styled-by-prettify=
">};</span><span style=3D"color:#000" class=3D"m_-7692250097086650299styled=
-by-prettify"><br><br></span><span style=3D"color:#008" class=3D"m_-7692250=
097086650299styled-by-prettify">template</span><span style=3D"color:#000" c=
lass=3D"m_-7692250097086650299styled-by-prettify"> </span><span style=3D"co=
lor:#660" class=3D"m_-7692250097086650299styled-by-prettify">&lt;</span><sp=
an style=3D"color:#008" class=3D"m_-7692250097086650299styled-by-prettify">=
typename</span><span style=3D"color:#000" class=3D"m_-7692250097086650299st=
yled-by-prettify"> T</span><span style=3D"color:#660" class=3D"m_-769225009=
7086650299styled-by-prettify">,</span><span style=3D"color:#000" class=3D"m=
_-7692250097086650299styled-by-prettify"> </span><span style=3D"color:#008"=
 class=3D"m_-7692250097086650299styled-by-prettify">typename</span><span st=
yle=3D"color:#000" class=3D"m_-7692250097086650299styled-by-prettify"> F</s=
pan><span style=3D"color:#660" class=3D"m_-7692250097086650299styled-by-pre=
ttify">&gt;</span><span style=3D"color:#000" class=3D"m_-769225009708665029=
9styled-by-prettify"><br></span><span style=3D"color:#008" class=3D"m_-7692=
250097086650299styled-by-prettify">auto</span><span style=3D"color:#000" cl=
ass=3D"m_-7692250097086650299styled-by-prettify"> my_fancy_algorithm</span>=
<span style=3D"color:#660" class=3D"m_-7692250097086650299styled-by-prettif=
y">(</span><span style=3D"color:#000" class=3D"m_-7692250097086650299styled=
-by-prettify">T</span><span style=3D"color:#660" class=3D"m_-76922500970866=
50299styled-by-prettify">&amp;&amp;</span><span style=3D"color:#000" class=
=3D"m_-7692250097086650299styled-by-prettify"> </span><span style=3D"color:=
#008" class=3D"m_-7692250097086650299styled-by-prettify">this</span><span s=
tyle=3D"color:#000" class=3D"m_-7692250097086650299styled-by-prettify"> </s=
pan><span style=3D"color:#008" class=3D"m_-7692250097086650299styled-by-pre=
ttify">self</span><span style=3D"color:#660" class=3D"m_-769225009708665029=
9styled-by-prettify">,</span><span style=3D"color:#000" class=3D"m_-7692250=
097086650299styled-by-prettify"> F</span><span style=3D"color:#660" class=
=3D"m_-7692250097086650299styled-by-prettify">&amp;&amp;</span><span style=
=3D"color:#000" class=3D"m_-7692250097086650299styled-by-prettify"> fn</spa=
n><span style=3D"color:#660" class=3D"m_-7692250097086650299styled-by-prett=
ify">)</span><span style=3D"color:#000" class=3D"m_-7692250097086650299styl=
ed-by-prettify"> </span><span style=3D"color:#660" class=3D"m_-769225009708=
6650299styled-by-prettify">{</span><span style=3D"color:#000" class=3D"m_-7=
692250097086650299styled-by-prettify"><br>=C2=A0 =C2=A0 </span><span style=
=3D"color:#800" class=3D"m_-7692250097086650299styled-by-prettify">// ...</=
span><span style=3D"color:#000" class=3D"m_-7692250097086650299styled-by-pr=
ettify"><br></span><span style=3D"color:#660" class=3D"m_-76922500970866502=
99styled-by-prettify">}</span><span style=3D"color:#000" class=3D"m_-769225=
0097086650299styled-by-prettify"><br><br></span><span style=3D"color:#660" =
class=3D"m_-7692250097086650299styled-by-prettify">}</span><span style=3D"c=
olor:#000" class=3D"m_-7692250097086650299styled-by-prettify"><br><br></spa=
n><span style=3D"color:#800" class=3D"m_-7692250097086650299styled-by-prett=
ify">// Usage:</span><span style=3D"color:#000" class=3D"m_-769225009708665=
0299styled-by-prettify"><br><br>user</span><span style=3D"color:#660" class=
=3D"m_-7692250097086650299styled-by-prettify">::</span><span style=3D"color=
:#000" class=3D"m_-7692250097086650299styled-by-prettify">my_view</span><sp=
an style=3D"color:#660" class=3D"m_-7692250097086650299styled-by-prettify">=
(</span><span style=3D"color:#000" class=3D"m_-7692250097086650299styled-by=
-prettify">myRange</span><span style=3D"color:#660" class=3D"m_-76922500970=
86650299styled-by-prettify">)</span><span style=3D"color:#000" class=3D"m_-=
7692250097086650299styled-by-prettify"><br>=C2=A0 =C2=A0 </span><span style=
=3D"color:#660" class=3D"m_-7692250097086650299styled-by-prettify">.</span>=
<span style=3D"color:#000" class=3D"m_-7692250097086650299styled-by-prettif=
y">transform</span><span style=3D"color:#660" class=3D"m_-76922500970866502=
99styled-by-prettify">(...)</span><span style=3D"color:#000" class=3D"m_-76=
92250097086650299styled-by-prettify"><br>=C2=A0 =C2=A0 </span><span style=
=3D"color:#800" class=3D"m_-7692250097086650299styled-by-prettify">// Barri=
ng type erasure, we can still find my_fancy_algorithm since the</span><span=
 style=3D"color:#000" class=3D"m_-7692250097086650299styled-by-prettify"><b=
r>=C2=A0 =C2=A0 </span><span style=3D"color:#800" class=3D"m_-7692250097086=
650299styled-by-prettify">//=C2=A0</span><span style=3D"color:rgb(136,0,0);=
font-family:arial,sans-serif">user::my_view type is encoded=C2=A0</span><sp=
an style=3D"color:rgb(136,0,0);font-family:arial,sans-serif">into the templ=
ate type somewhere</span></div><div class=3D"m_-7692250097086650299subprett=
yprint"><span style=3D"color:#000" class=3D"m_-7692250097086650299styled-by=
-prettify">=C2=A0 =C2=A0 </span><span style=3D"color:#660" class=3D"m_-7692=
250097086650299styled-by-prettify">.</span><span style=3D"color:#000" class=
=3D"m_-7692250097086650299styled-by-prettify">my_fancy_algorithm</span><spa=
n style=3D"color:#660" class=3D"m_-7692250097086650299styled-by-prettify">(=
....)</span><span style=3D"color:#000" class=3D"m_-7692250097086650299styled=
-by-prettify"><br>=C2=A0 =C2=A0 </span><span style=3D"color:#660" class=3D"=
m_-7692250097086650299styled-by-prettify">.</span><span style=3D"color:#000=
" class=3D"m_-7692250097086650299styled-by-prettify">accumulate</span><span=
 style=3D"color:#660" class=3D"m_-7692250097086650299styled-by-prettify">(.=
...);</span></div></code></div></div><div><font face=3D"arial, sans-serif"><=
br></font></div><div><font face=3D"arial, sans-serif"><br></font></div><div=
><font face=3D"arial, sans-serif">Problems that have yet to be addressed:</=
font></div><div><ul><li><font face=3D"arial, sans-serif">In the definition =
of a class method, does </font><font face=3D"courier new, monospace">this-&=
gt;foo(...)</font><font face=3D"arial, sans-serif"> consider extension meth=
ods in overload resolution? Why or why not?</font></li><li><font face=3D"ar=
ial, sans-serif">Outside of the definition of a class method, does </font><=
font face=3D"courier new, monospace">foo.bar(...)</font><font face=3D"arial=
, sans-serif"> consider both extension methods and member functions in over=
load resolution? Why or why not? (I think it should overload both; if the m=
ember function doesn&#39;t exist, it should be able to fall back on extensi=
on methods)</font></li><li><font face=3D"arial, sans-serif">Should qualifie=
d function calls be allowed? That is, should I be able to write </font><fon=
t face=3D"courier new, monospace">foo.std::ranges::transform(...<wbr>)</fon=
t><font face=3D"arial, sans-serif">? This would be consistent with member f=
unctions; I can already write </font><font face=3D"courier new, monospace">=
string.std::string::size()</font><font face=3D"arial, sans-serif">. If we a=
llow this, should this be able to call extension methods from arbitrary nam=
espaces, not just ones that can be found via ADL?</font></li><li><font face=
=3D"arial, sans-serif">Is this a reasonable restriction level? If the libra=
ry implementer does not put all the extension methods in their own namespac=
e with a wrapper that brings them into context, it could get out of hand fa=
st. Granted, this would be no different from using unqualified prefix funct=
ion calls.</font></li></ul></div></div><span class=3D"HOEnZb"><font color=
=3D"#888888">

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br>
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org" target=3D"_=
blank">std-proposals+unsubscribe@<wbr>isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" target=3D"_blank">std-proposals@isocpp.org</a>.<br>
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/7ce23f53-d00e-45a0-a62b-c42060c5833d%=
40isocpp.org?utm_medium=3Demail&amp;utm_source=3Dfooter" target=3D"_blank">=
https://groups.google.com/a/<wbr>isocpp.org/d/msgid/std-<wbr>proposals/7ce2=
3f53-d00e-45a0-<wbr>a62b-c42060c5833d%40isocpp.org</a><wbr>.<br>
</font></span></blockquote></div><br></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/CAANG%3DkVgcf9o1K8dGVKj4_ECQRC_UmJXB%=
3D_NFOo%3DLymMMsP6yQ%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfoote=
r">https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAANG%3DkVg=
cf9o1K8dGVKj4_ECQRC_UmJXB%3D_NFOo%3DLymMMsP6yQ%40mail.gmail.com</a>.<br />

--0000000000000868a505729a6a53--

.
