官术网_书友最值得收藏!

Allowed operators

The Swift standard library provides a number of operators that can be used to define custom operators. Custom operators can begin with one of the ASCII characters -/, =, -, +, !, *, %, <, >, &, |, ^, ?, ~, or one of the Unicode characters. After the first character, combining Unicode characters is allowed.

We can also define custom operators that begin with a dot. If an operator does not start with a dot, it cannot contain a dot elsewhere. Although we can define custom operators that contain a question mark (?), they cannot consist of a single question mark character only. Additionally, although operators can contain an exclamation point (!), postfix operators cannot begin with either a question mark or an exclamation point.

主站蜘蛛池模板: 荆州市| 贵德县| 陇川县| 华蓥市| 阳春市| 古田县| 京山县| 辽中县| 山东| 波密县| 洪雅县| 进贤县| 乃东县| 内丘县| 彭州市| 观塘区| 明光市| 新和县| 集贤县| 中方县| 吴桥县| 青州市| 浦县| 乌苏市| 三都| 嵊州市| 贺州市| 中宁县| 磴口县| 南华县| 华安县| 利津县| 泸溪县| 象州县| 临武县| 商城县| 洛阳市| 都匀市| 保山市| 博白县| 和平县|