News for hackers. Stuff that matters.
Re:Fantasy World OCaml (2013) by rwmj on Sunday August 03, 2014 @06:34AM (#8127594)
I prefer that OCaml doesn't support Unicode in the core language, and that it's left to Camomile to support.

One reason is that it's very hard to get it right -- see how complex Perl 5 is which is about the only language that does do the right thing. Another reason is that baking an incorrect Unicode into the language would be worse than the current situation. For examples of brokenness, see: all of Win32, Java, Ruby.

It would be good to remove the broken String.lowercase and String.uppercase functions from the stdlib though.

Edit: Although perhaps your problem was more to do with supporting arbitrary binary in the source files (which instead are encoded as ISO-8859-1). That would be something to fix.

Re:Fantasy World OCaml (2013) by tel on Sunday August 03, 2014 @03:45PM (#8128909)
Haskell has its Text library type. Which is a great example of how complex UTF done right can be... And how it can be done quite nicely as a lib. String literal overloading is pretty important (and library-level rare) though.