logoalt Hacker News

slazaro • today at 10:53 AM • 3 replies • view on HN

They always seemed to me like solutions to a nonexistent problem. They make the code less readable, but ligatures exist and they seemed like a cool tech thing to implement, and they might look cool in screenshots. But in practice, in my opinion, they're worse than just having the normal characters. But I guess it's a matter of opinion, no harm in other people using them.


Replies

Perz1val • today at 5:07 PM

They don't detract from readability for me, so it's just pretty symbols = me more happy

yayachiken • today at 11:18 AM

We have studies since ages ago that consistency in code style is one of the most important requirements for code quality.

This goes down to the details like that you should either use spaces over tabs OR prescribe editor config such that the code looks similar on each machine.

Of course this doesn't automatically mean that code ligatures are harmful, but I would be quite wary of using them. At the very least it introduces some friction, not sure if the arguably lower mental load of using real mathematical symbols instead of the ASCII symbols makes up for it.

➕ show 1 reply
smohare • today at 11:54 AM

[dead]