Date: Thu, 11 Dec 2025 00:44:53 +0100
On 2025-12-10 at 22:18, Filip via Std-Proposals wrote:
> Perhaps this syntax would be interesting:
>
> mutable const a = …
> final a;
>
> Using those existing keywords would have a meaning here that a is const
> after n writes or after manual final
>
Except that final is not a keyword, but an "identifier with special
meaning", only when used in certain contexts.
Specifically final and override was not allowed to start a virtual
function override. It was put at the end instead, to avoid conflicts.
> Perhaps this syntax would be interesting:
>
> mutable const a = …
> final a;
>
> Using those existing keywords would have a meaning here that a is const
> after n writes or after manual final
>
Except that final is not a keyword, but an "identifier with special
meaning", only when used in certain contexts.
Specifically final and override was not allowed to start a virtual
function override. It was put at the end instead, to avoid conflicts.
Received on 2025-12-10 23:45:01
