You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#1195 claims that the null-forgiving operator is not a unary operator.
I would like that to not be so, given that it's a (postfix) operator with a single operand, which has always been my understanding of "unary operator".
This may prove to be more controversial than I'd expected.
Note that unary_expression and primary_expression are not up for being changed here - even though unary_expression doesn't include all expressions using unary operators.
This bug is for research around how feasible it is to make this consistent without being too disruptive.
Note that await already counts as a "unary operator" but can't be overloaded, so "unary operator" doesn't actually mean "overloadable operator with one operand".
The text was updated successfully, but these errors were encountered:
jskeet
added
the
type: bug
The Standard does not describe the language as intended or implemented
label
Nov 20, 2024
#1195 claims that the null-forgiving operator is not a unary operator.
I would like that to not be so, given that it's a (postfix) operator with a single operand, which has always been my understanding of "unary operator".
This may prove to be more controversial than I'd expected.
Note that
unary_expression
andprimary_expression
are not up for being changed here - even thoughunary_expression
doesn't include all expressions using unary operators.This bug is for research around how feasible it is to make this consistent without being too disruptive.
Note that
await
already counts as a "unary operator" but can't be overloaded, so "unary operator" doesn't actually mean "overloadable operator with one operand".The text was updated successfully, but these errors were encountered: