C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Alternative Free Function Calling Syntax.

From: Jason McKesson <jmckesson_at_[hidden]>
Date: Sun, 28 Sep 2025 13:49:46 -0400
On Sun, Sep 28, 2025 at 12:01 PM Jarrad Waterloo via Std-Proposals
<std-proposals_at_[hidden]> wrote:
>
> Bad At The Game,
>
> Do you have a response for https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p3027r0.html "UFCS is a breaking change, of the absolutely worst kind"?

The primary thrust of that paper is focused on cases where a person
wrote code that uses member function call syntax in good faith that it
would not do ADL gymnastics suddenly having their code exposed to the
vagaries of ADL gymnastics without their will, knowledge, or consent.

The OP's proposal uses an opt-in syntax, so that paper doesn't really
pertain to the OP's proposal. As stated in the proposal, "The syntax
x.f() continues to find only members."

Received on 2025-09-28 17:49:58