C++ Logo

std-proposals

Advanced search

[std-proposals] Possible deprecation of -> operator

From: Filip <fph2137_at_[hidden]>
Date: Fri, 31 Jan 2025 11:22:59 +0100
Hi everyone,

I’m wondering about the possibility of removal or deprecation of -> operator in favor of automatic dereference by ‘.’

If I remember correctly in tcc, compiler has a single if to check if they are used correctly and could automatically use the correct operation.

Are there any good reasons to keep that syntax?
In my experience it’s just an annoying part of early c that is maintained.

Cheers,
Filip

Cheers, Filip

Received on 2025-01-31 10:23:11