Hacker News new | past | comments | ask | show | jobs | submit login

Question from someone who don't know Rust: Why two dots instead of an ellipsis (three)?



Three dots doesn't look like an ellipsis in a monospaced font, it's far too wide.


It can if you use a monospaced font with ligatures.

Take a look at Fira Code [1]. I use it in Vim and IntelliJ, and it looks great with Rust and other functional languages.

[1] https://github.com/tonsky/FiraCode


Well, I'm sure you know what I meant.


I'm pretty sure he did know what you meant, and offered a serious response. I think he's suggesting that perhaps the aesthetics of the ellipsis is what prevented it from being selected.


It's already a keyword or operator (not sure which) used in range notation (1..2); why add a new operator when an old one will do?


Three dots are for inclusive ranges, two for exclusive




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: