logoalt Hacker News

tostiyesterday at 9:11 PM4 repliesview on HN

The C++ looks messed up. I have yet to come across a keyboard that can type an arrow.


Replies

quietbritishjimyesterday at 9:18 PM

It's just a programming font ligature. If you copy and paste it you'll see the actual characters e.g.

   auto main() -> int {
(It's also modern C++ trailing return type.)
show 2 replies
Something1234yesterday at 9:17 PM

Some developers like ligature based fonts. They combine 2 characters into one glyph

show 1 reply
yellowappleyesterday at 10:53 PM

Any keyboard can type “→” if you set up a compose key :)

bheadmasteryesterday at 9:20 PM

It's just "->" - the ligature font just renders it as a unitary arrow