Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
cbm-vic-20
· 4y ago · 0 comments
In the case of a "real Unicode arrow", I'd just as soon use a Unicode literal if the language supports it, like '\u2192'.
Comments
[–]
erichurkman
4y ago
Even better if your language supports it: use named escape sequences so you don't have to look it up. "\N{RIGHTWARDS ARROW}" vs "\u2192"
[–]
hydroxideOH-
4y ago
Or I could type -> and get on with my life.
[–]
detaro
4y ago
How does that give you the unicode character you need in the output? Or are you saying there is just never a reason to have those in strings?
[–]
leephillips
4y ago
If your computer is set up properly you just type <mod>-> to get →.