Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dy108
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
dy108
3y ago
The reason for textual range is maintaining textual selection / editing interactions and 1:1 character<->value matching, so by deleting one character you delete one value. It is almost same as your suggested representation, just
2.
▲
by
dy108
3y ago
The problem replacing digits like 99,98,100 etc with ligatures of corresponding height is that it would lose 1:1 matching of value to character, so textual selection / operations would be screwed.
3.
▲
by
dy108
3y ago
Not just simpleness but also performance profit, since the premise is fonts are the most optimized rendering stack everywhere. Btw that one-liner function is helper, you don't have to install it it, just do `String.fromCharCode(0x100 +