Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Alexander Voinov" <avoinov@gmail.com>
To: "'blue storm'" <bluestorm.dylc@gmail.com>
Cc: "'Damien Doligez'" <damien.doligez@inria.fr>, <caml-list@yquem.inria.fr>
Subject: RE: [Caml-list] A syntax extension to simplify List manipulation
Date: Mon, 25 Jan 2010 16:14:16 -0800	[thread overview]
Message-ID: <006201ca9e1c$825f5880$871e0980$@com> (raw)
In-Reply-To: <527cf6bc1001251432n1e72c0b6idd26154e32cccfb9@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2508 bytes --]

Hi

 

I've thrown in your version and used it within that big app, a portion of
which I've presented as an 'example' for the syntax extension. Everything
works well. I've also checked that the compiler correctly points to
locations of syntax errors (probably this was the problem which forced me to
move to camlp5). I will test it more.

 

Can I incorporate your contribution into the deliverable for that extension?

 

Now that this tiny project grows, it's probably worth introducing a
configure script with parameters like --without-interatei and
--enable-camlp5.

 

Thank you!

 

Alexander

 

 

From: blue storm [mailto:bluestorm.dylc@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:45 PM, Alexander Voinov <avoinov@gmail.com>
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 = 1

line in the Makefile (and do a fresh build), and, second, always

open ExtLib;;


I think you should keep iteratei by default : if the user use an
insufficient List module, he will get a classical "unbound value
List.iteratei" error from the compiler, and will easily relate it to the
code using your extension (as the "iteratei" name is apparent).
If you document that point, it could be much easier than a compile-time
option that requires one to edit the Makefile. If you really want an option
to disallow iteratei syntaxically, you could use command-line options to
make that choice at runtime (that would be more flexible).
I don't know how well camlp5 handle command-line parameters, so I can't help
you there. 



Regarding camlp4, I don't remember why this extension didn't work with it
after that big refactoring, which gave birth to camlp5. I'm making a TODO
for myself to take a look at this.


In case you're interested, attached is a short camlp4 (>= 3.10) port of your
extension (wich wasn't thoroughly tested). As you can see, changes are
minimal. This is just in case, I don't have any opinion on what preprocessor
you should use.
 

The tarball is: http://www.voinov.org/FP/spbSyntax-1.0.1.tgz

(and also http://www.voinov.org/FP/spbSyntax.tgz)

 

PS : the software license is the zlib/png license. Maybe you should mention
it explicitely.


[-- Attachment #2: Type: text/html, Size: 7172 bytes --]

  reply	other threads:[~2010-01-26  0:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-16 22:33 Configuring emacs to work with caml C. Fr
2010-01-16 23:21 ` A syntax extension to simplify List manipulation Alexander Voinov
2010-01-17  8:24   ` [Caml-list] " blue storm
2010-01-25 17:42     ` Damien Doligez
2010-01-25 21:45       ` Alexander Voinov
2010-01-25 22:32         ` blue storm
2010-01-26  0:14           ` Alexander Voinov [this message]
2010-01-26  0:39             ` blue storm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='006201ca9e1c$825f5880$871e0980$@com' \
    --to=avoinov@gmail.com \
    --cc=bluestorm.dylc@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=damien.doligez@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox