3 ms·
I agree with the post (by ggm) desiring that Python 4 were instead called something else; I think Python 3 should have been something else too. I would also re
by mjevans 6y ago
I agree with the post (by ggm) desiring that Python 4 were instead called something else; I think Python 3 should have been something else too.
I would also really like Python 4 to take a different approach to strings; more similar to Python 2.
The native format for strings should be a byte vector, with additional tags denoting if it has an encoding and if that encoding is validated. Coertsion of data type between byte vector and validates string should be automatic, but only performed in contexts that require a type.
Additionally the native type should be either UTF-8 (matching the 96% on the web as of 2021) or WTF8 (Like UTF-8, but encodes invalid byteforms in escape sequences so they round-trip) from Rust.
https://www.w3.org/International/questions/qa-who-uses-unicode https://www.w3.org/International/questions/qa-who-uses-unico...
https://simonsapin.github.io/wtf-8/ https://simonsapin.github.io/wtf-8/