I don't know if this has the logical ring to it that many in the computing community appreciate, but I can't get past an emotional interpretation:
"DON'T do that!" always has a "!" on the end of it. At least, it certainly did since childhood for me. Other examples: "No!" and "I told you, NO!".
There's a pretty strong negation in that character. It symbolizes alarm, that there's something wrong. I'd choose that character for negation.
Even now, whenever I see an exclamation mark, there is a sudden amygdalic spasm and a subconscious urge to pull back my hands and cover my mouth while I stare I what I shouldn't have been doing.
So where in a positive case, it might be == "yes, this", its != "no, NOT this!". i.e. Stop. ALARM Stop what? Stop 'this'.
Before I encountered coding (which isn't very much, btw) or logic (perhaps even less), I used to use "!" in handwritten notes for lab protocols ("caution", "error", etc, (but also, "activated") or as a shorthand for pain/physical injury in my training diaries.
!as the array indexing operator. (The Development of the C Language) – dan04 Jun 14 '21 at 18:16!is the factorial function. – ErikF Jun 14 '21 at 19:01/=or|=would also work as approximations of≠, but C uses those operators for other things. – dan04 Jun 14 '21 at 21:56=+,=/? – texdr.aft Jun 15 '21 at 02:44¬(and the broken-pipe symbol) - but the US keyboard doesn't - so methinks if K&R had a British keyboard for some reason then we'd be using better symbology all around, especially in C-derived languages today :) – Dai Jun 15 '21 at 04:49|and¦? – dan04 Jun 15 '21 at 15:29| U+007C vertical lineand not¦ U+00A6 broken bar. But this may be a glitch in Ubuntu's keyboard layout. I ought to remap one to something more useful (and ¬ for that matter) – Chris H Jun 15 '21 at 15:34¬; not in my experience they didn't. My experience in the mid-70s was Flexowriters and Teletypes, and then imported DEC gear. In fact, I ran into no character set with¬in it, except for IBM gear. Maybe you had an ICL keyboard after the 2900 adopted EBCDIC? Can you elucidate? – dave Jun 15 '21 at 23:09-would have worked for logical negation. Did any language do that? – dave Jun 17 '21 at 02:48¦at 0x7C (broken bar) was to distinguish it from|(vertical line) as the alternative glyph at 0x21 (normally!(exclamation mark)), which was a concessions to 6-bit character set computers. Later ASCII changed that glyph assignment. Earlier IBM PC computers still had¦in its extended ASCII character set. – Eljay Jun 15 '22 at 14:15