Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Ocaml compiler features
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-01-16 (05:18)
From: Edgar Friendly <thelema314@g...>
Subject: Re: [Caml-list] Ocaml compiler features
Jon Harrop wrote:
> We really want a File.fold function to fold over the lines of the file, and a 
> cons function:
>   File.fold cons ch []
While we're at it, why not parameterize the splitting mechanism: one
fold for token-based folding (each \n or other separator), and a second
fold for record-based folding (every n bytes).

> I have a much bigger wish list for functions than I do for syntax. I'd like 
> the stdlib functions to be tail recursive, more comprehensive and faster...

Should we start another thread to put improved/needed stdlib functions?
I imagine some discussion (and postings of code) related to this matter
could be productive.