This repository has been archived by the owner on Mar 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
RFC: Flexible String Representation #303
Comments
Once wasabiz and I discussed what picrin's internal representation of unicode would be. There are some pros of UTF-8 and several cons of UTF-16 (or UTF-32).
Thus remaining char and using UTF-8 will do, I think. How do you think @wasabiz ? |
@KeenS Thank you. I agree with your opinion. Some additions from my perspective:
|
Sounds nice. I don't mind changing string internal representation unless it compiles on freestanding environment. UTF-32 sequence is good for programs doing heavy string modifications, but I think such a case is no more than 1% of the total. Providing a different structure is rational. |
Even if it breaks no-libc rule, if we can switch it off with macros, it'll probably be ok. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Related to #211.
Python community published a proposal named PEP 0393, "Flexible String Representation" and implemented in 3.3. picrin doesn't use
wchar_t
now, but we might benefit from any similar representation. What do you think?Reference: https://www.python.org/dev/peps/pep-0393/
The text was updated successfully, but these errors were encountered: