News for hackers. Stuff that matters.
Re:Maintain It with Zig by coldtea on Thursday September 09, 2021 @12:33AM (#28466221)
>In something like Zig I think it's OK that it's merely a stated assumption that these bytes are UTF-8, not actually checked - so long as people take that seriously.

And also as long as all supported operations on those bytes still result in utf-8 strings (there could be unsafe operations too, like splitting at a random byte offset, but there should be a clearly marked safe set that wont corrupt a valid utf-8 byte sequence).

There are no comments on this comment yet.