C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Revising #pragma once

From: Tiago Freire <tmiguelf_at_[hidden]>
Date: Tue, 27 Aug 2024 20:28:52 +0000
It's a clear-cut case of a feature that industry pretty much converged on, and the standard lagged behind.
________________________________
From: Std-Proposals <std-proposals-bounces_at_[hidden]> on behalf of Thiago Macieira via Std-Proposals <std-proposals_at_[hidden]>
Sent: Tuesday, August 27, 2024 10:21:05 PM
To: std-proposals_at_[hidden] <std-proposals_at_[hidden]>
Cc: Thiago Macieira <thiago_at_[hidden]>
Subject: Re: [std-proposals] Revising #pragma once

On Tuesday 27 August 2024 10:20:25 GMT-7 Tiago Freire via Std-Proposals wrote:
> My concern is, why should I be penalized because you have that problem?

Why are you being penalised at all? There is a feature already, albeit non-
standard and you're clearly happy with it within the constraints of your use
(toolchain, build environments, etc.). Failing to standardise it will not
remove the feature.

What benefits are you expecting to gain with the standardisation over what you
already have? You're not likely to use a toolchain or environment where it
isn't supported right now.

Standardising something that is currently has diverging behaviours may lead to
drawbacks to people who are currently using it, if not done properly. Are you
willing to accept this risk?

And adding #once is xkcd.com/927

--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel DCAI Platform & System Engineering
--
Std-Proposals mailing list
Std-Proposals_at_[hidden]
https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals

Received on 2024-08-27 20:28:56