I guess then I'd picture something like `==i` or something, vs the prefix; that way `!==i` is still understandable, and also having it at the end makes it look flag-gy and also less like some sort of "do then assign" operator the way `i=` would
if you want to make it more clear that it's like a flag sort of thing, you could even do like ... `==/i` ? "double equals, modified to be case insensitive" which is basically the same as above but with the slash to make it more reg-exy
I also like this because it appears to be explicit syntax that indicates the next whitespace breaks the token, assuming that x==y would be a valid comparrison
I like 'Β‘', but it should actually be specifically the upside-down exclamation mark from Spanish (U+00A1), rather than the ninth letter of the Latin alphabet (U+0069).
I know you probably don't want to hear this but regex operations are rare enough for me that I prefer just having a method describing what it does in English rather than a symbol that's hard to reference. Maybe a flag saying how to interpret the pattern.
since case-insensitive comparison is often performed with both strings being compared as if they were in the same case, I propose the =π§’π§’π (caps lock operator)
Probably you donβt want to taking any advice from Vimscript, but it uses ==? for case insensitive and ==# for case sensitive. So is == case insensitive or case sensitive, I hear you ask. It depends. (!)
Comments
(It reads "equals but IDC about the case")
(since case-insensitive comparison could be thought of as upper(a)==upper(b) )
=~=
or
~~
(β, probably, but it isn't accessible enough from common keyboard layouts)
///JavaScript///
str1.toLowerCase() === str2.toLowerCase();
(too soon?)