4 ms·
I'm saying that it's useful to not conflate the types for sequences of Unicode codepoints and and filesystem paths. Using the same type for both is likely to r
by KMag 6y ago
I'm saying that it's useful to not conflate the types for sequences of Unicode codepoints and and filesystem paths. Using the same type for both is likely to result in code with baked-in assumptions that for any path, there is a standard encoding that will yield a sequence of Unicode codepoints.
Pervasive code with this sort of type confusion in the wild in Python2 is why Python3 separated bytes and strings.
- throwaway894345 6y agoMaybe, but a decade of experience with Go suggests that this isn’t a significant problem (i.e., more than a handful of instances).