C++ Logo

std-proposals

Advanced search

Re: [std-proposals] return value lives until end of scope

From: Jonathan Wakely <cxx_at_[hidden]>
Date: Sat, 23 May 2026 11:14:35 +0100
On Sat, 23 May 2026 at 10:32, Alejandro Colomar via Std-Proposals <
std-proposals_at_[hidden]> wrote:

>
> What's the point? We already have
>
> auto _ = async(Func);
>
> Which is objectively better because it tells you what it does. There's
> an '=', which tells you that it's being assigned, and thus the usual
> rules apply.


Initialized, not assigned ;-)

There's no assignment there, despite the '=' token.


> Are you worried about typing a word as long as 'auto'?
> I'd worry more about having yet another meaning for '%' which will
> almost certainly confuse programmers.


+1

Received on 2026-05-23 10:14:53