Re:Monocraft: A programming font based on the typeface used ...
by IgorPartola on Wednesday September 07, 2022 @12:40AM
(#32746373)
I am with you. When you are inverting your logic and need to delete the ! out of != but you have the ligature version you are prone to making a mistake. Best case, you notice it. Worst case you don’t and create a subtle bug.
Re:Monocraft: A programming font based on the typeface used ...
by WastingMyTime89 on Wednesday September 07, 2022 @12:49AM
(#32746428)
How would you make a subtle mistake while turning != into = due to ligatures?
Re:Monocraft: A programming font based on the typeface used ...
by pluijzer on Wednesday September 07, 2022 @07:39AM
(#32749284)
var a, b = true; if (a!=b) console.assert(false, "unreachable");
Re:Monocraft: A programming font based on the typeface used ...
by leshenka on Wednesday September 07, 2022 @10:39AM
(#32751254)
just aim for the middle of the "=/=". Click right where the vertical line is
Re:Monocraft: A programming font based on the typeface used ...
by freeCandy on Wednesday September 07, 2022 @12:28AM
(#32746310)
Your last point on minor changes make a lot of sense. Are there any fonts that do this?
Re:Monocraft: A programming font based on the typeface used ...
by bobbylarrybobby on Wednesday September 07, 2022 @12:47AM
(#32746414)
I use Iosevka with just the "kern-dotty" ligatures enabled.
- It makes me have to think too hard to figure out where the boundaries actually lie between characters when I want to edit. I don't want to think about how many times I'll have to press backspace to delete a single "character"; without ligatures, I don't have to think at all. - With ligatures enabled, I have to remember how to type each character-group (e.g., that != is the same as slashed equals). With ligatures disabled, I can just read it back from an existing example. In other words, ligatures create a separation between what I type and what I see. - It makes it hard to quickly compare my code to examples online that don't use the ligatures because, again, I'm forced to translate between what's on my screen and what's in the file.
The only ligatures I appreciate are minor stylistic ones, e.g., raising a colon slightly before a number, adjusting the spacing between two consecutive colons, raising two consecutive asterisks, etc. Changes that don't fundamentally change the code appears but make it a teensy bit more aesthetically pleasing.