On 1/20/23 9:31 AM, Gergely Nagy via Std-Proposals wrote:
Absolutely not. But you can, if you want 

#define → ->

And you are set.

Actually, no. Per [cpp.pre], macro names are required to be identifiers and, per [lex.name], U+2192 (RIGHTWARDS ARROW) is not among the characters that are allowed in identifiers, even prior to the acceptance of P1949 for C++ and N2836 for C. As can be seen here, that character does not have the XID_Start property.

We might eventually want to adopt a subset of such non-identifier characters for use as operators in C and C++ and, perhaps as part of a more encompassing proposal, it would make sense to dedicate this character as an alias of the -> operator if only to prevent it from being used for other purposes. But I think this proposal on its own lacks sufficient motivation at this time.

Tom.



On Fri, Jan 20, 2023, 08:05 Julien Allali via Std-Proposals <std-proposals@lists.isocpp.org> wrote:
Dear all,

Even if it looks anecdotal, I would like to suggest support for unicode
right arrow character → as a valid substitution for ->.

best,

     Julien.

--
Std-Proposals mailing list
Std-Proposals@lists.isocpp.org
https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals