As previously explained, Swift 3 removed the prefix increment and postfix increment operators. However, imagine that many members of our team have experience with other programming languages that provide these operators and they want to use them to increase the value of the
age property of the different
Animal instances. We can declare the following unary operators to simplify their lives while coding:
++): We will use the operator before the variable to which it is applied (for example,
++): We will use the operator after the variable to which it is applied (for example,
In this case, both the operators use exactly the same characters; therefore, we must use ...