Hacker News new | ask | show | jobs
by tialaramex 1348 days ago
> D's string is not text by itself because it is an array of UTF-8 code units.

Bytes. It's an array of bytes. D's char type isn't actually restricted to UTF-8 code units, char x = '\xFF'; works just fine even though that's not UTF-8.

1 comments

I see what you mean but array of bytes is something else in D: byte[].