From: Yamagata Y. <yor...@mb...> - 2003-06-19 18:45:47
|
Thank you for the comment. From: "Nicolas Cannasse" <war...@fr...> Subject: Re: [Ocaml-lib-devel] A proposal for Unicode character and UTF-8 modules. Date: Thu, 19 Jun 2003 14:14:31 +0900 > I think that one of the thing that could be done is to merge the two modules > into one I made UChar and UTF-8 two different modules because, * Char and String are different modules, and I want to make unicode modules similar to the string API of stdlib as far as possible, and * Users, or eventually we, may provide other Unicode string (UTF-16, UCS-4, BOCU, or whatever). Making UTF-8 an independent module would make changing Unicode string implementation easier. If nested modules are acceptable, we can pack them into one module, of course. > work a little on function/type naming and better exception > handling. Is it better to define its own exception than to use invalid_arg? Currently, UTF-8 module don't do bound checking itself for the performance reason. Is it better to do bound checking in UTF-8, and raise its own exception other than Invalid_arg? -- Yamagata Yoriyuki |