Skip to content
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

Open
bordoley opened this issue Apr 15, 2017 · 3 comments
Open

Unicode #32

bordoley opened this issue Apr 15, 2017 · 3 comments

Comments

@bordoley
Copy link

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.

@ghost
Copy link

ghost commented Apr 15, 2017

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.

@bordoley
Copy link
Author

bordoley commented Apr 15, 2017

note javascript strings are UCS-2(essentially UTF-16) according to spec http://sking7.github.io/articles/131730713.html.

@ghost
Copy link

ghost commented Apr 15, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant