Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Str.string_match raising Invalid_argument "String.sub" in gc
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Miles Egan <miles@c...>
Subject: [Caml-list] standard regex package
On Thu, Aug 23, 2001 at 10:31:46AM -0700, Brian Rogoff wrote:
> I agree that Str is suboptimal, but I think that there are also a few
> other ways in which string handling could be improved, like 
> 
> (1) Very long strings (Sys.max_string_length = 16777211 on most
>     machines). Please don't tell me that slurping a 100M file into a 
>     string is probably not smart, I know that, but it's a restriction
>     that annoys some (many?) programmers. 
> 
> (2) Wide character strings
> 
> (3) Functional strings (and functional arrays while we're at it :)
> 
> (4) Substrings

These would all be very nice, I agree, but I also think we need something better
than str and sooner than all these things could be implemented.  Maybe some kind
of transitional scheme would work?

While were on the subject of beginner usability, it seems to me that if dynamic
loading of c-libraries is still a ways off, it might be nice to build the unix
module into the toplevel at install time.

-- 
miles

"We in the past evade X, where X is something which we believe to be a
lion, through the act of running." - swiftrain@geocities.com
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr