I have a class
public class Thing
blah.name = "text"
blah = "text" // Swift knows I mean blah.name = "text"
blah = x // Swift knows I mean blah becomes x as normal
., the prefix operators
?, the infix operator
?, and the postfix operators
?are reserved. These tokens can’t be overloaded, nor can they be used as custom operators.
It can be done in C++, but it really shouldn't be, in most cases. It adds needless smoke and mirrors to your code, with all kinds of confusing implicit behaviour.