News for hackers. Stuff that matters.
Re:Ligatures in programming fonts: hell no (2019) by eps on Tuesday December 21, 2021 @12:23PM (#29639619)
Why on Earth one would want in a character-oriented text (i.e. where every character matters separately) to have some of them collapsed into one is beyond me. Why not take it further and have IDE render all occurrences of "cat" with an emoji.
Re:Ligatures in programming fonts: hell no (2019) by detaro on Tuesday December 21, 2021 @12:31PM (#29639746)
Because in the cases ligatures are used most prominently, a "logical" character is made from multiple characters.
Re:Ligatures in programming fonts: hell no (2019) by 9dev on Wednesday December 22, 2021 @05:02AM (#29647416)
Nobody expects mathematicians to write all their formulae in ASCII either, they are allowed to use special markup to denote specific things. Why can't developers use more specific notation for displaying code? We use `==` for equality checks due to a limitation of typewriters, not because it's the only sensible way to do this. Give ligatures a chance for a single afternoon, and you'll see the value of purpose-specific glyphs. They aren't replaced by arbitrary hieroglyphs, but actually self-explanatory, helpful representations of the thing a bunch of characters are supposed to tell you.
Re:Ligatures in programming fonts: hell no (2019) by maweki on Wednesday December 22, 2021 @04:50AM (#29647333)
But the programming language is token-oriented.
Re:Ligatures in programming fonts: hell no (2019) by axelerator on Wednesday December 22, 2021 @11:00AM (#29651034)
But keyboards are not. Even if I’d be able to convince the maintainers of my favorite programming language to also accept some Unicode glyph as synonym to ‘==‘ how do I type it? Ligatures might not be ‘the right’ solution, but they are a highly efficient approximation. Also the cost of reversing the decision to use them is basically zero.
Re:Ligatures in programming fonts: hell no (2019) by maweki on Wednesday December 22, 2021 @05:09PM (#29656101)
That's what I said. To the programming language it's just a token and representing that with a single ligature is fine.

I replied to a comment, that the document is character-based and therefore ligatures are inherently wrong.