News for hackers. Stuff that matters.
Re:Modern Mono by masklinn on Monday February 13, 2023 @03:02PM (#34779466)
I love ligatures. I find that well crafted ones make code look more coherent without detracting in any way from the structure (unlike proportional fonts which I abhor).

They're also very useful for languages which have operators which are easy to confuse, like the triple equal of PHP and JS (in which case having a ligature that's really distinct from the double equal is very convenient).

Re:Modern Mono by capableweb on Monday February 13, 2023 @05:46PM (#34782028)
Monospace font on HN seems to do good enough, at least for me, or you think these are too similar as well?

    ==
vs

    ===
On my machine(s), the difference is quite obvious, with the space in-between each equal sign and all.
Re:Modern Mono by WorldMaker on Tuesday February 14, 2023 @02:23PM (#34794579)
The difference is obvious when paired together next to each other like that, but the issue with code is often you are looking at examples (often with weary eyes) that are "miles apart" or the only one in a file and trying to spot the difference.

The ligatures that stack a third bar vertically across the space of three characters do jump out at you as much more meaningfully distinct in isolation. You don't have to just count width or whitespace, you have a third "clue" to work with, and sometimes that extra "clue" is incredibly important when you are tired and staring a bunch of code you expected to work and has a subtle bug and need to visually spot the subtle bug.