Comment

Comment by masklinn

> Because then it allows simple math that you can’t do on UTF-8.

That's not actually useful, because unicode itself is a variable length encoding.

So it mostly blows up the size of your data.

Though it might have been selected for implementation simplicity and / or backwards compatibility (e.g. same reason why Python did it, then had to invent "flexible string representation" because strings had become way too big to be acceptable).

parent masklinn 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton