Date: Thu, 14 May 2026 09:21:05 +0200
> On May 14, 2026, at 12:12 AM, Máté Ték via Std-Proposals <std-proposals_at_[hidden]> wrote:
>
> I did some more thinking and I think this proposal is really a build system optimization disguised as a language feature.
You are right that this could improve build times. However, for the main point would rather be that the header file (which is read by users of my class) is not trashed with private methods that no user of my class needs to know about. If there were a way to just have public methods (and public member variables) inside the header file I would even advocate for that. But so far, the compiler needs all member variables to know the class layout.
>
> I did some more thinking and I think this proposal is really a build system optimization disguised as a language feature.
You are right that this could improve build times. However, for the main point would rather be that the header file (which is read by users of my class) is not trashed with private methods that no user of my class needs to know about. If there were a way to just have public methods (and public member variables) inside the header file I would even advocate for that. But so far, the compiler needs all member variables to know the class layout.
Received on 2026-05-14 07:21:19
