C++ Logo

std-proposals

Advanced search

Re: Optional braces for function definitions in some contexts

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Thu, 27 Jun 2019 20:07:44 +0300
On Thu, 27 Jun 2019 at 20:01, Arthur O'Dwyer via Std-Proposals
<std-proposals_at_[hidden]> wrote:
>
> On Thu, Jun 27, 2019 at 12:29 PM Kyle Knoepfel via Std-Proposals <std-proposals_at_[hidden]> wrote:
>>
>> Here’s an idea I’ve been thinking about a lot regarding functions composed of a single statement, and I’d like your thoughts.
>> [...]
>> Does this idea seem worth fleshing out? How difficult would it be for implementations to provide, if it was worthwhile?
>
>
> No, it's not worth fleshing out. It is impossible for implementations to provide. But investigating it further will likely teach you a lot of corner cases about C++!

There's nothing impossible in it, but ideas that require changing
every c++ parser on the planet need to cure cancer,
and this idea doesn't.

Received on 2019-06-27 12:09:46