From: Stefano Zacchiroli <zack@bononia.it>
To: caml-list@inria.fr
Subject: Re: On language extensions (was Re: [Caml-list] global record)
Date: Thu, 20 Jul 2006 08:29:11 +0200 [thread overview]
Message-ID: <20060720062911.GA14278@aquarium.takhisis.invalid> (raw)
In-Reply-To: <1153372578.18872.13.camel@rosella.wigram>
On Thu, Jul 20, 2006 at 03:16:18PM +1000, skaller wrote:
> On Wed, 2006-07-19 at 21:12 -0400, Eric Breck wrote:
> > Such locality is a basic principle of software engineering,
> > and in this case I don't really know how to achieve it with only a
> > library (and not a syntax extension).
>
> In my opinion, the difficulty here lies in the Ocaml
> programming model.
>
> Precisely as you say above regarding locality .. the syntax
> extensions should be localised. In particular, they should
> be embedded in the file that uses them -- along with
> documentation -- and not specified on the command line.
>
> For example
>
> syntax MyExtensions;;
Fully agreed. Me myself try to enforce locality of syntax extensions to
avoid possible clashes. Unfortunately handling that in large project is
really painful, since you end up in having to differentiate "clusters"
of files which need to be built with different set of camlp4 flags, and
you need to do that in Makefile.
In my mind this is asking for trouble, and the usual solution I pursue
is to avoid using syntax extensions ... a pity.
Cheers.
--
Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy
zack@{cs.unibo.it,debian.org,bononia.it} -%- http://www.bononia.it/zack/
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. -!-
next prev parent reply other threads:[~2006-07-20 6:30 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-20 1:12 Eric Breck
2006-07-20 5:16 ` skaller
2006-07-20 6:29 ` Stefano Zacchiroli [this message]
2006-07-20 8:57 ` Jean-Marie Gaillourdet
2006-07-20 12:42 ` Bünzli Daniel
2006-07-20 12:40 ` Camlp4 mysteries (was Re: On language extensions (was Re: [Caml-list] global record)) Martin Jambon
2006-07-20 23:38 ` Alain Frisch
2006-07-21 0:11 ` Martin Jambon
2006-07-21 0:29 ` skaller
2006-07-21 0:31 ` Martin Jambon
-- strict thread matches above, loose matches on Subject: below --
2006-07-19 17:14 [Caml-list] global record Eric Breck
2006-07-19 19:41 ` On language extensions (was Re: [Caml-list] global record) Daniel Bünzli
2006-07-19 19:57 ` Richard Jones
2006-07-19 20:22 ` Stefano Zacchiroli
2006-07-19 21:33 ` Nicolas Pouillard
2006-07-20 2:57 ` Martin Jambon
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=20060720062911.GA14278@aquarium.takhisis.invalid \
--to=zack@bononia.it \
--cc=caml-list@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