C++ Logo


Advanced search

Re: Questions about wording and design intention for header units and ideas

From: Daniel Ruoso <daniel_at_[hidden]>
Date: Fri, 19 May 2023 19:59:58 -0400
Em sex., 19 de mai. de 2023 às 14:43, Gabriel Dos Reis
<gdr_at_[hidden]> escreveu:
> The whole "header unit" concept is really a build-system "acceleration" device; proper use highly depends on the project and build setting.
> I will caution against unproven attempt to try to require in-source annotation of any sort.

Yes. I agree with that. Particularly because early adoption has shown
that for this to be useful (in the environments where it can be used,
which is not everywhere), the semantics have to be that of an
"optimization" to be performed by the build system, and at this point
I believe the specification goes farther than it should.

The thing that is necessary for achieving this optimization goal is
simply to allow the implementation to use such a mechanism, we don't
really need to introduce an entirely new set of semantics to the
language for this to be possible.

The introduction of the extra semantics means that this optimization
becomes a required part of supporting the language, and the argument
I'm making is that this optimization cannot be applied universally.


Received on 2023-05-20 00:00:11