Date: Fri, 18 Apr 2025 11:52:49 +0100
On Fri, Apr 18, 2025 at 11:24 AM Sebastian Wittmeier wrote:
>
> If there are several existing ways, then they won't go away.
If we have a new "_Tag" keyword, then about 10 years from now, not
many people will keep doing things the old way.
> Why introduce another one instead of promoting the best of the existing ones?
>
> One of the advantage of (some) existing ways is compatability, as they are reusing features.
If tagging were to be standardised, then the instructional manual for
an SDK could read something like "the class T must have the
DuplicateCounter tag", and the programmer wouldn't have to go figure
out how the tagging is done. They would know that it's done the
Standard way using the _Tag keyword.
> If you really go into type tagging and make a core language change proposal, then it should bring added benefits
There were zero benefits to structured bindings but they made it in
anyway. Structured bindings are nothing more than syntactical sugar.
Nothing gained from them at all. But the standardisation of tagging
would simply and make uniform something that's currently being done 3
or 4 different ways.
>
> If there are several existing ways, then they won't go away.
If we have a new "_Tag" keyword, then about 10 years from now, not
many people will keep doing things the old way.
> Why introduce another one instead of promoting the best of the existing ones?
>
> One of the advantage of (some) existing ways is compatability, as they are reusing features.
If tagging were to be standardised, then the instructional manual for
an SDK could read something like "the class T must have the
DuplicateCounter tag", and the programmer wouldn't have to go figure
out how the tagging is done. They would know that it's done the
Standard way using the _Tag keyword.
> If you really go into type tagging and make a core language change proposal, then it should bring added benefits
There were zero benefits to structured bindings but they made it in
anyway. Structured bindings are nothing more than syntactical sugar.
Nothing gained from them at all. But the standardisation of tagging
would simply and make uniform something that's currently being done 3
or 4 different ways.
Received on 2025-04-18 10:53:00