C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Execute statement when leaving scope

From: Thiago Macieira <thiago_at_[hidden]>
Date: Fri, 23 Dec 2022 08:20:27 -0300
On Friday, 23 December 2022 06:55:18 -03 Frederick Virchanza Gotham via Std-
Proposals wrote:
> You don't need to
> include a header file nor write lambda syntax.

That's a bug, not a feature.

Building upon something that the user should already know usually means it's
more understandable to a reviewer or someone else a few years later. There's a
smaller cognitive load to have to remember what all these different syntaxes.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering

Received on 2022-12-23 11:20:30