3 ms·
I think there is some convenience in being able to use the type system to denote input which has already been validated; however, I can't see how a language run
by throwaway894345 6y ago
I think there is some convenience in being able to use the type system to denote input which has already been validated; however, I can't see how a language runtime benefits from this property with respect to unicode. Notable, printing and processing text aren't operations a runtime typically deals with. Libraries including the standard library might benefit from this property, but even then I wouldn't say the benefit is "great". It's a nice property, but I don't think it makes or breaks anything.
- rkangel 6y agoIt's worth pointing out that Python 3 thought it important enough to make a backwards incompatible change to separate 'bytes' from 'strings' to effectively get the same result.
- throwaway894345 6y agoProbably, but I think that’s more to do with the typing convenience (which is even more puzzling in Python’s case since it isn’t statically typed).