自定義運算符使用限制:
如果標準的運算符不夠用,還可以聲明一些自定義的運算符。但自定義的運算符只能使用這些字符『/ = - + * % < > ! & | ^ . ~』
官方文檔中原文
NOTE
The tokens =, ->, //, /*, */, ., the prefix operators <, &, and ?, the infix operator ?, and the postfix operators >, !, and ? are reserved. These tokens can’t be overloaded, nor can they be used as custom operators.
翻譯過來就是:符號=, ->, //, /*, */, . , 前綴操作符<, &, 和 ?,中綴操作符?,后綴操作符>, !, 和 ?都是被保留的字符,這些符號不能被重載,也不能被當做普通的操作符