3 ms·
Question from someone who don't know Rust: Why two dots instead of an ellipsis (three)?
by petters 10y ago
Question from someone who don't know Rust: Why two dots instead of an ellipsis (three)?
- kryptiskt 10y agoThree dots doesn't look like an ellipsis in a monospaced font, it's far too wide.
- echelon 10y agoIt 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 https://github.com/tonsky/FiraCode
- petters 10y agoWell, I'm sure you know what I meant.
- swsieber 10y agoI'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.
- deleted 10y ago[deleted]
- belovedeagle 10y agoIt'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?
- iopq 10y agoThree dots are for inclusive ranges, two for exclusive