Chris S
Legendary Member
- Location
- Birmingham
The ~ is used in logic to denote 'not'.But surely they chose the tilde because it was available and not used for much. They could have used the ¬ symbol, or maybe ^, or possibly `. I used to be a C programmer and I rarely ever used the inversion operator. It's not that useful. What is the ~ symbol used for in normal writing? OTOH it is a nuisance not having access to the degree symbol when I want to write down a temperature or an angle. I know there are codes, but that usually means looking it up on the internet. Otherwise I have to bring up a character map utility or Word and select the insert symbol menu option, find the symbol and copy and paste it across.
It's widely used in C programming at the assembler level.
It's now also used in C++ and Java to denote class destructors.