Re: [Caml-list] A syntax extension to simplify List manipulation

2010-01-25 Thread blue storm
On Tue, Jan 26, 2010 at 1:14 AM, Alexander Voinov wrote: > Can I incorporate your contribution into the deliverable for that > extension? > Do with my code as your please. ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-b

RE: [Caml-list] A syntax extension to simplify List manipulation

2010-01-25 Thread Alexander Voinov
. Thank you! Alexander From: blue storm [mailto:bluestorm.d...@gmail.com] Sent: Monday, January 25, 2010 2:32 PM To: Alexander Voinov Cc: Damien Doligez; caml-list@yquem.inria.fr Subject: Re: [Caml-list] A syntax extension to simplify List manipulation On Mon, Jan 25, 2010 at 10:

Re: [Caml-list] A syntax extension to simplify List manipulation

2010-01-25 Thread blue storm
On Mon, Jan 25, 2010 at 10:45 PM, Alexander Voinov wrote: > I've updated this extension to remove the dependency on ExtLib (as > suggested > previously). The price is that iteratei is not available with the core List > module. > > If you do need iteratei, first uncomment the > > # WITH_ITERATEI =

RE: [Caml-list] A syntax extension to simplify List manipulation

2010-01-25 Thread Alexander Voinov
a TODO for myself to take a look at this. Thank you! Alexander -Original Message- From: Damien Doligez [mailto:damien.doli...@inria.fr] Sent: Monday, January 25, 2010 9:43 AM To: blue storm Cc: Alexander Voinov; caml-list@yquem.inria.fr Subject: Re: [Caml-list] A syntax extension to simpli

Re: [Caml-list] A syntax extension to simplify List manipulation

2010-01-25 Thread Damien Doligez
On 2010-01-17, at 09:24, blue storm wrote: 2) The use of the Extlib module is hardcoded in the syntax extension. I would find it nicer if you only referred to "List.map" instead of "Extlib.List.map", and let the user "open Extlib" if he wants to override the stdlib. That would allow one to use

Re: [Caml-list] A syntax extension to simplify List manipulation

2010-01-17 Thread blue storm
Thanks for the release : it's interesting to see syntax extensions in use. I have a few question/remarks. 1) Are you interested in a camlp4 (>= 3.10) port ? 2) The use of the Extlib module is hardcoded in the syntax extension. I would find it nicer if you only referred to "List.map" instead of "E

[Caml-list] A syntax extension to simplify List manipulation

2010-01-16 Thread Alexander Voinov
Hi All, This is a syntax extension I've been using since 2003: http://www.voinov.org/FP/spbSyntax.tgz It defines a number of constructs, which make List traversals look like loops over arrays/sequences in popular languages like Python: map [1;2;3] with e -> e + 1 filtermap [1;2;3] with e when