3 ms·
I have a different proposal - ligatures. I don't know if you've ever played with a font like FiraCode, but it gives you both fancy typographical symbols and co
by azernik 8y ago
I have a different proposal - ligatures.
I don't know if you've ever played with a font like FiraCode, but it gives you both fancy typographical symbols and compatibility with existing compilers by defining purely-visual translations between certain sequences of characters and purpose-built glyphs. So for example '!=' is rendered as '≠', '=>' as '⇒', '>=' as '≥', etc.
See https://github.com/tonsky/FiraCode https://github.com/tonsky/FiraCode. They do go a bit overboard, IMO.
- Uberphallus 8y agoOh, they do. Why should www turn into a ligature?
- pc86 8y agoIsn't the whole point of a ligature to visually change a suboptimal representation of something to what it's supposed to represent? E.g. changing != to ≠ visually while the compiler still sees !=? www isn't representing anything so a ligature doesn't make sense. Same with the comment ligatures, the << and <<< comparisons (shouldn't <> change to ≠?). Even the thinner escape \, which I understand the reasoning for, is probably overkill.
- azernik 8y agoTraditionally ligatures have been about abbreviation or aesthetics, not weird approximations in character sets: see https://en.m.wikipedia.org/wiki/Typographic_ligature https://en.m.wikipedia.org/wiki/Typographic_ligature E.g. when I enable ligatures in Pillars of Eternity, it just makes all the prose look gorgeous.