Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> No, I do not want >> parsed as a right shift when it's actually used as two adjacent template delimiters.

I don't like ligatures either, but I think that this depends on the editor. For example, if typing Rust in IntelliJ, if you type `Box<Box<String>>`, it will show two regular ">" characters. But if you type `x >= 3`, it will replace it with a single glyph.

https://ibb.co/Dzx0LFG



How about 'x >> 3'?

I would be very surprised if the editor enabled and disabled ligatures in sections of code based on information from a proper parser...


I don't think it actually does anything useful with >>

I've tried both Fira Mono and Jetbrains Mono, it seems to barely get the two glyphs closers. Below are screen captures of Jetbrains Mono.

With ligatures: https://ibb.co/vQ3nCsd

without ligatures: https://ibb.co/DtD1P9X

But, to your point, it would seem it doesn't enable ligatures based on the parser, since there is a difference between ligatures active and disabled, and it applies on both lines.




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

Search: