Stories
Slash Boxes
Comments

SoylentNews is people

posted by Fnord666 on Monday July 24 2017, @03:39AM   Printer-friendly
from the not-no-but-... dept.

Submitted via IRC for Bytram

Ligatures in programming fonts — a misguided trend I was hoping would collapse under its own illogic. But several readers have already sent me this new argument in favor.

Let me save you some time:

Ligatures in programming fonts are a terrible idea.

And not because I’m a purist or a grump. (Some days, but not today.) Programming code has special semantic considerations. Ligatures in programming fonts are likely to either misrepresent the meaning of the code, or cause miscues among readers. So in the end, even if they’re cute, the risk of error isn’t worth it.

There are good reasons we have Unicode and this is NOT one of them.

Source: http://tinyletter.com/mbutterick/letters/q-ligatures-in-programming-fonts-a-hell-no


Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 4, Interesting) by cafebabe on Monday July 24 2017, @04:24AM (2 children)

    by cafebabe (894) on Monday July 24 2017, @04:24AM (#543575) Journal

    Do not want. Re-mapping compound punctuation, commonly found in programming, to distinct Unicode code-points would be about as helpful as multi-tonal Morse code. I'm sure there will be fans of this proposal but we've got enough problems with seven bit clean ASCII source code displayed as seven bit clean ASCII source code. If you don't have a Western European first language then function names and variable names with extended symbols may aid forays into programming. I've suggested decoupling all glyphs for the purpose of simplifying display [soylentnews.org]. I've seen more complicated schemes which may be facetious.

    --
    1702845791×2
    Starting Score:    1  point
    Moderation   +2  
       Interesting=1, Informative=1, Total=2
    Extra 'Interesting' Modifier   0  
    Karma-Bonus Modifier   +1  

    Total Score:   4  
  • (Score: 0) by Anonymous Coward on Monday July 24 2017, @06:03AM

    by Anonymous Coward on Monday July 24 2017, @06:03AM (#543581)

    we've got enough problems with seven bit clean ASCII source code displayed as seven bit clean ASCII source code.

    APL programming and ASCII mix like oil and water.

  • (Score: 1) by kai_h on Tuesday July 25 2017, @09:29AM

    by kai_h (1524) on Tuesday July 25 2017, @09:29AM (#544100)

    Ligatures are generally used for display and printed output - you'll find that usually the underlying text is as it was typed.
    So, ligatures would be used to improve (depending on your definition of improve) on-screen display of code, but the raw bytes can and would still be ASCII (or Unicode to whatever you originally typed)

    So, if you had an expression that was (0…9) then the three dots (...) can be replaced with an ellipsis character (…) etc, but this replacement is done by the text editor for display, it wouldn't replace the three ASCII 0x2E bytes with a single unicode 0x2026 character.