C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Distinguish between adjectives and verbs

From: Pavel Vazharov <freakpv_at_[hidden]>
Date: Wed, 11 Oct 2023 13:08:03 +0300
Either use a word that

> stands out as a verb (i.e. its adjective is not identical), or
> alternatively prefix the adjective with "is_".
>
I agree that the names should have been with "is_" or something like that.
However, since C++ 20 such functions
<https://en.cppreference.com/w/cpp/container/vector/empty> are marked with
[[nodiscard]] and the compilers will warn about unused result when
appropriate warning level is set.

Received on 2023-10-11 10:08:17