C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Revising #pragma once

From: Thiago Macieira <thiago_at_[hidden]>
Date: Tue, 27 Aug 2024 13:21:05 -0700
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

Received on 2024-08-27 20:21:12