C++ Logo

liaison

Advanced search

Re: [wg14/wg21 liaison] P2961R1 syntax for Contracts: viable for C?

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Fri, 6 Oct 2023 11:39:23 +0300
On Fri, 6 Oct 2023 at 11:30, Jens Gustedt via Liaison
<liaison_at_[hidden]> wrote:
>
> Hi,
> anything of the form
>
> identifier ( ballanced-token-sequence )
>
> would in principle be good for C, because it can be handled with a macro.
>
> For the identifiers, I think that keywording three or four letter codes is really a bad idea.

"pre" and "post" are not keywords, they are grammatic parts of a
function declaration.

> This should be "precondition" or similar. People that argue that this is too long, should review the capacities of their IDE.

Why?

Received on 2023-10-06 08:39:37