Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Ocaml interface to ctype.h functions
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Chris Hecker <checker@d...>
Subject: Re: [Caml-list] Ocaml interface to ctype.h functions

>It's mostly a matter of knowing what we want these classification
>functions to do.  Meanwhile, it might be easier to define your own
>isalpha, etc, predicates; at least you get to choose the encoding!
>Besides, it's really easy using pattern-matching, e.g. for ASCII:

But, we've got someone willing to do the work for everybody, so it seems a shame not to use it just because we can't figure out what the 100% Right Thing is.  

How about putting a nested ASCII (or ISO_Latin_1, or whatever) module inside Char, and putting the ascii specific functions in there?  That way it's clear what they're doing and what they support, and we still get to use the fruits of his free labor.  ;)

And then you can add a Unicode one, when we find somebody to do that, etc.

Chris


-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr