3 ms·
Back in 2000, when I was doing the initial design of the D programming language, I was convinced that Unicode was the future (things weren't as clear then). Ear
by WalterBright 7y ago
Back in 2000, when I was doing the initial design of the D programming language, I was convinced that Unicode was the future (things weren't as clear then). Earlier, I had put various multibyte encodings into the Zortech C compiler (Shift-JIS, etc.).
But it wasn't clear at all whether to use UTF-8, -16 or -32. Windows and Java used UTF-16. So D became agnostic about that, supporting all three equally.
Over time it became clear that you're right, the best approach was to use UTF-8 everywhere, and last-minute convert to/from other formats.