-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unicode #32
Comments
Or we can implement a reasonable utf8 module inside bs-core, redirect the user to js native utf8 if they are compiling to js and provide a native implementation of our own. |
note javascript strings are UCS-2(essentially UTF-16) according to spec http://sking7.github.io/articles/131730713.html. |
Apart from the fact that OCaml has little support for utf8, I still think bs-core/bs-containers should have a char/string module as the stdlib char/string module is currently lacking. As stated before I think bs-containers as a stdlib candidate should support provide better support for char/string, and deal the Unicode issue with some other utilities. |
OCaml's Unicode support appears to be fairly abysmal, and I'm a little concerned that bs-containers is not improving the situation. Perhaps we should remove the char and string modules altogether and encourage use of native javascript strings in bucklescript and let native users adopt libraries like Camomille etc.
The text was updated successfully, but these errors were encountered: