5 ms·
Can you elaborate a bit more about what your found lacking in Zig strings?
by gautamcgoel 6y ago
Can you elaborate a bit more about what your found lacking in Zig strings?
- HourglassFR 6y agoWell there are no strings, only byte arrays. Now that's fine if you only pass bytes around in a stream, but if wan't to do any computation it you have to assume an encoding and basically anything outside of straight ASCII will be a pain. Now you may argue that this can be handled nicely in the standard library without changing the language. This is correct, but there will be some frictions with string litterals.
- LakeByTheWoods 6y agoWhat frictions do you anticipate? String literals in zig are utf8 encoded.