- Joined
- Aug 27, 2017
- Messages
- 110
While writing a short Cerberus X tutorial two things confused me a bit:
1. The escape sequence '~z' is mentioned in the documentation but does not exist. So is this a bug or has it been removed but remained in the docs?
2. '~' is used for bitwise xor and for bitwise complement. Since most of the operators are same as in languages like C or C++ (where bitwise xor is '^') I wonder if this could be a mistake. I mean "A~~B" (which means "A (bitwise) Xor (bitwise) Not B") does not result in a conflict but it looks strange somehow. "A^~B" looks much clearer to me.
1. The escape sequence '~z' is mentioned in the documentation but does not exist. So is this a bug or has it been removed but remained in the docs?
2. '~' is used for bitwise xor and for bitwise complement. Since most of the operators are same as in languages like C or C++ (where bitwise xor is '^') I wonder if this could be a mistake. I mean "A~~B" (which means "A (bitwise) Xor (bitwise) Not B") does not result in a conflict but it looks strange somehow. "A^~B" looks much clearer to me.