3 ms·
I was surprised to see that you didn't add any Go-specific code ligatures (e.g. for <- like Fira Code provides[1]). Has there been any thought into providing a
by sambeau 10y ago
I was surprised to see that you didn't add any Go-specific code ligatures (e.g. for <- like Fira Code provides[1]).
Has there been any thought into providing a variant with some? While I could see why some might be against them I think they're rather fun and can make code more readable.
[1] see for example https://github.com/tonsky/FiraCode https://github.com/tonsky/FiraCode
- err4nt 10y agoThis is honestly where I thought this was going when I saw the title. It would be cool for a font to be invested in the language it's used to describe to the point where it supports features of that language. I use Fira Code for JS, HTML, and CSS and it's great. Very rarely to the extra fun ligatures get in the way, and when they are printed they look absolutely gorgeous. I wish all/most code samples in tutorials and articles were set in it so they would be a pleasure to read. But these fonts left me scratching my head.
- cp9 10y agofyi you can get most sites to honor your font with a combination of the browser's default monospace font and extensions like Stylish. even this comment box respects Fira Code, see[1] [1]: https://imgur.com/a/LjbS3 https://imgur.com/a/LjbS3
- jerf 10y agoThere aren't that many places where Go's syntax would make such things useful. There's := and // for comments. A case could be made for [] to indicate slice. Reading over some code the only other one that seems to come up a lot is (), which is just "calling a function with no arguments" and I'm not sure I'd want that particularly distinguished. Comments are generally already color coded, so that really just leaves :=. Although I could make a case for making :+ some sort of ligature that makes it obvious I just screwed up by holding SHIFT too long. :) You won't see it by scanning my code base, but I definitely type it a lot....