Hacker News new | ask | show | jobs
by dy108 875 days 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 do `String.fromCharCode(values.map(v => v + 0x100))` or manually as `&#x1XX;&#x1XX;&#x1XX;` in HTML.