Hacker News new | ask | show | jobs
by dekerta 1666 days ago
I've never understood why some programmers like to use ligatures, especially on a cheat sheet like this, which will be used primarily by people who aren't familiar with the syntax.

It's not 'a' ⇒ 1, it's 'a' => 1, just write it out the correct way. Why are you trying to be fancy?

3 comments

This is done by the used font, in the markup it's correct.
Looks like iosevka to me. Lovely font

EDIT: I wrongly assumed at a glance because of the shape of the $. On closer look the characters are much wider than iosevka. It's jetbrains mono

Because the characters '=>' have been used to simulate exactly the character '⇒' : to mean an arrow, not e.g. "equality then greater than".
Overall I think this is reasonable, but the font I'm using on my ide has ligatures and I think they provide a vastly better reading experience.