Re:JetBrains Mono – the free and open-source typeface for de...
by gnull on Thursday January 20, 2022 @01:17PM
(#30012514)
The ligature ≠ for != is very C/C++/Java-specific, which is kind of annoying. Is there a way to selectively disable ligatures like this one?
[ Parent
| on HN ]
Re:JetBrains Mono – the free and open-source typeface for de...
by timw4mail on Thursday January 20, 2022 @02:12PM
(#30013239)
It's a very common logic operator across a multitude of languages. In what situation do you have that sequence of characters that isn't a logic operator?
Re:JetBrains Mono – the free and open-source typeface for de...
by jonnycomputer on Thursday January 20, 2022 @04:54PM
(#30015660)
~= and <> are common-enough, e.g. in Matlab, SQL
Having a ligature for != but not for the others betrays its language-independent semantics.
!= in Matlab is not legal logic operator.
Also, != might be part of regular expression.
Re:JetBrains Mono – the free and open-source typeface for de...
by gnull on Thursday January 20, 2022 @07:10PM
(#30017332)
https://hoogle.haskell.org/?hoogle=%28%21%3D%29&scope=set%3A...
Using Haskell is one such situation. Haskell's inequality operator is /= which someone could expect when they see ≠. Some people redefine != as a custom operator (see link), which can bring even more confusion with this ligatures.