Date: Mon, 05 Jan 2026 16:43:28 -0300
On Monday, 5 January 2026 16:27:53 Brasilia Standard Time Ivan Lazaric via
Std-Proposals wrote:
> If it was opt-in, does that mean C libraries would never come with named
> parameters enabled?
> There's a lot of C functions I would love to use named parameters on.
Indeed, especially those with crappy APIs that fall into The Boolean Trap
because they don't have overloads and member functions.
This feature needs to be adoptable by C, even if at the end WG14 decides not
to adopt it. We should then gently pressure the C compiler people to provide
it as an extension in C, so the C library authors can themselves opt in even
if the standard language doesn't.
Either way, we need to solve the problem of macros.
Std-Proposals wrote:
> If it was opt-in, does that mean C libraries would never come with named
> parameters enabled?
> There's a lot of C functions I would love to use named parameters on.
Indeed, especially those with crappy APIs that fall into The Boolean Trap
because they don't have overloads and member functions.
This feature needs to be adoptable by C, even if at the end WG14 decides not
to adopt it. We should then gently pressure the C compiler people to provide
it as an extension in C, so the C library authors can themselves opt in even
if the standard language doesn't.
Either way, we need to solve the problem of macros.
-- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Principal Engineer - Intel Data Center - Platform & Sys. Eng.
Received on 2026-01-05 19:43:38
