Hacker News new | ask | show | jobs
by KolmogorovComp 1119 days ago
The content is interesting but the use of ligature really put me off guard at first, and I am very familiar with Rust. I cannot imagine it being good for beginners to grok its syntax.

This has reminded me of https://news.ycombinator.com/item?id=35925821 recently reposted, which boils down to:

> if you’re preparing your code for others to read—whether on screen or on paper—skip the ligatures.

2 comments

Yeah I think the ligature debate is a bit tiring frankly but one place where putting ligatures is very clearly a bad idea is in code examples. A blog is not my IDE, I can't turn them off and even worse I don't even know they are on! Can you use a unicode arrow for Rust closures? Is that what this is? I don't know!
Do you mean the arrows? As long as they are fixed-width -single or double- it's ok and even pretty, but if variable-width fonts in code is a no-no for me.