by skytreader · 9y ago · 0 comments
modular_raft = 10
spam = 20
The "ft" in modular_raft should convert to a ligature so (I assume) it will then take one character, instead of two. Then developers viewing that source would have different alignments, depending on whether they use Sublime 3 or not.(EDIT: Formatting.)
Which, ultimately, is what matters. You actually have to turn it on in Jetbrain's editors.
It's a decent "no harm, no foul" feature.
https://news.ycombinator.com/item?id=14821446
I've mixed feelings about the idea, but generally seem to like the combination of Atom and Fira Code.
(To save people the click: LaTeX ligatures != Fira ligatures. Most Fira ligatures are for programming operators/comparators and they are made to take as much space as the non-ligature version.)
The only difference is that one ligature applies to alphabetic characters and the other to non-alphabetic characters.
Ligatures can be used to make some font aesthetically pleasing like this: http://www.impallari.com/lobster/
Or they can be abused like this: https://pixelambacht.nl/2015/sans-bullshit-sans/
It is perfectly possible for a font to have alphabetic and non-alphabetic ligatures.
It's not a "must have", but I find it more readable and pleasing than using regular fonts.
Ligature mishaps are doubleplus-unclean.
Does Sublime Text support those? Any other popular editor? If not, why?
The problem is that it needs the underlying text editor to support different non-uniform tab stops to be configured for every line of code. Few if any text editors support it.
It's not about those kind of ligatures -- but about special programming fonts with programming-oriented ligatures (think >= etc).
Those still can affect code alignment, but there are people who are against manual alignment anyway.
No it will still take two characters, but they will be represented by a single glyph.