C++ Logo

std-proposals

Advanced search

eq keyword and multi-token alternative operators

From: Walt Karas <wkaras_at_[hidden]>
Date: Sun, 18 Oct 2020 00:40:50 +0000 (UTC)
I suggest adding the keyword "eq" as an alternative to the == token.

bitand= , bitor= , bitxor= seem more clear and consistent to me than and_eq, or_eq, xor_eq . The pain point is that bitand/bitor/binxor would have to become reserve words rather than just keywords. With that change, would there be any parsing ambiguities with these sequences of two tokens representing a single operator?

Received on 2020-10-17 19:41:20