Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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.

E.