Live data from Hacker News

Almost monospaced: the perfect fonts for writing

blakewatson.com

171–174 of 174 posts

Re: Almost monospaced: the perfect fonts for writing

#171
There's an easy solution to stop worrying among input, iosevka, source code pro, consolas, and the like: https://en.wikipedia.org/wiki/Andalé_Mono

    $ brew tap homebrew/cask-fonts     # You only need to do this once!
    $ brew install font-andale-mono
Of course, most other recommendations in this thread are available as well:

https://github.com/Homebrew/homebrew-cask-fonts/tree/master/...

These land in the same folder as user installs through Font Book. Using homebrew makes moving to a new system as easy as bundling the Brewfile.

Re: Almost monospaced: the perfect fonts for writing

#172
post #159

Earlier quoted context omitted.

Languages should allow for leading commas to enable the more uniform: [ , a , b , c ] Depending on the rest of the language syntax, it could also be nice to have a markdown-style list syntax: [ - a - b - c ]

In JavaScript a leading comma in an array would create a first element whose value is undefined, I believe.

[deleted]

Re: Almost monospaced: the perfect fonts for writing

#173
post #159

Earlier quoted context omitted.

Languages should allow for leading commas to enable the more uniform: [ , a , b , c ] Depending on the rest of the language syntax, it could also be nice to have a markdown-style list syntax: [ - a - b - c ]

In JavaScript a leading comma in an array would create a first element whose value is undefined, I believe.

That's correct, but you can use a trailing comma if you prefer uniform lists:

  [
    a,
    b,
    c,
  ]

Re: Almost monospaced: the perfect fonts for writing

#174

Earlier quoted context omitted.

In JavaScript a leading comma in an array would create a first element whose value is undefined, I believe.

That's correct, but you can use a trailing comma if you prefer uniform lists: [ a, b, c, ]

I simply prefer :

[ a

, b

, c

]

because, I think this is as 'uniform" as it gets. All syntactic separators are in the first column. Thus they are all uniformly in the same column. Line 1 has the syntactic separator '[' which means start-of-array. Lines 2 and 3 have ',' as the syntactic separator which means element-separator. And line 4 has the final syntactic marker which means "end of Array".

All elements of the array start at the same column, uniformly. And all syntactic separators are in the same column also uniformly.

Post reply on HN