caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Markus Mottl <markus@oefai.at>
To: Daniel de Rauglaudre <daniel.de_rauglaudre@inria.fr>
Cc: caml-list@inria.fr
Subject: [Caml-list] syntax change (was: camlp4o problem)
Date: Mon, 4 Feb 2002 17:25:13 +0100	[thread overview]
Message-ID: <20020204162513.GA22263@chopin.ai.univie.ac.at> (raw)
In-Reply-To: <20020204164154.D2338@verdot.inria.fr>

On Mon, 04 Feb 2002, Daniel de Rauglaudre wrote:
> It has no chance to become the standard if nobody wants to use it...

And unfortunately vice versa...

> There are very few users interested in the revised syntax.

Because it is not standard.

> How much do you estimate the chances that people will accept a major
> change of the syntax?

If it breaks their previous work and/or if they cannot continue in their
old style (at least for a while), ...

> You want my opinion? 0%

... then 0%, I agree.

> If you have written an application of 50000 lines of OCaml on 60 files
> in 5 directories, are you accepting that the new version of OCaml has
> a very new syntax, very clean and very incompatible with the previous
> one?

If I can use camlp4 conveniently to work with my existing sources as if
no change had happened, I wouldn't mind, but I fear that not everything
would work smoothly right now. It should at least in principle be possible
(though a lot of work) to design all language tools in such a way that
they accept ASTs annotated with position information (for exact error
messages), thus making them completely independent of concrete syntax.

This would make later syntax changes much less cumbersome for both the
maintainers and the users and allow the language to evolve faster. A
rather strategic proposal for the language and environment...

> And even if you want to convert to it, what is your reaction if the
> new version of OCaml has a bug in a part very important for you?

I don't quite understand this argument: bugs can happen during every
change, what is the problem with syntax changes in particular?

> Well, there is no need to impose a new clean standard syntax, because
> there is Camlp4. If most of people use the revised or any-clean syntax,
> it becomes a standard de facto.

I disagree here. People need a "soft kick" to change. Surely, it shouldn't
be a painful one, this would just drive away users, but a strong enough
one to make them go and give future users of OCaml the opportunity to
start out with an even saner syntax.

> I am ok for a definition of a new syntax. I propose the revised syntax
> as a start of the discussion.

That's ok for me. There may be small details where I could argue about
alternatives, but it is probably a good start.

> I don't propose to start with the normal syntax because it is too much
> difficult to parse with recursive descent technology. I managed to do
> it but thanks to hacks.

Sounds reasonable.  For people who want to learn more about
advantages/disadvantages of LL-parsers (= recursive descent) vs.
LALR-parsers (= ocamlyacc), see this article:

  http://compilers.iecc.com/comparch/article/91-06-032

Regards,
Markus Mottl

-- 
Markus Mottl                                             markus@oefai.at
Austrian Research Institute
for Artificial Intelligence                  http://www.oefai.at/~markus
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


  parent reply	other threads:[~2002-02-04 16:25 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-02  0:12 [Caml-list] otags problem Shivkumar Chandrasekaran
2002-02-04 14:11 ` [Caml-list] camlp4o problem (was: otags problem) Hendrik Tews
2002-02-04 14:52   ` Daniel de Rauglaudre
2002-02-04 15:08     ` Markus Mottl
2002-02-04 15:41       ` Daniel de Rauglaudre
2002-02-04 15:57         ` Christophe Raffalli
2002-02-04 17:06           ` Daniel de Rauglaudre
2002-02-04 16:25         ` Markus Mottl [this message]
2002-02-04 17:01           ` [Caml-list] syntax change (was: camlp4o problem) Daniel de Rauglaudre
2002-02-04 17:46             ` Markus Mottl
2002-02-04 18:08               ` Daniel de Rauglaudre
2002-02-06  8:19                 ` M E Leypold @ labnet
2002-02-04 18:28             ` Mattias Waldau
2002-02-04 20:11               ` Markus Mottl
2002-02-04 22:52                 ` Chris Hecker
2002-02-04 23:04                   ` Benjamin C. Pierce
2002-02-04 23:28                     ` Markus Mottl
2002-02-04 23:20                   ` Markus Mottl
2002-02-05  2:39                   ` Daniel de Rauglaudre
2002-02-05  2:55                     ` Chris Hecker
2002-02-05  2:01                 ` Brian Rogoff
2002-02-05 10:33                   ` Markus Mottl
2002-02-05 11:53                     ` Remi VANICAT
2002-02-05 12:05                       ` Daniel de Rauglaudre
2002-02-05 17:23                       ` Stefano Zacchiroli
2002-02-22 10:15                       ` [Caml-list] Emacs mode for revised syntax? Johan Georg Granström
2002-02-22 10:21                         ` Christian Gillot
2002-02-06  8:23                 ` [Caml-list] syntax change (was: camlp4o problem) M E Leypold @ labnet
2002-02-04 23:04           ` Chris Hecker
2002-02-05  2:47             ` Daniel de Rauglaudre
2002-02-05  2:59               ` Chris Hecker
2002-02-05  8:42                 ` Daniel de Rauglaudre
2002-02-05  9:09                   ` [Caml-list] LL, LR, and camlp4 (was Re: syntax change) Chris Hecker
2002-02-05  9:31                     ` Daniel de Rauglaudre
2002-02-05  9:33                     ` Xavier Leroy
2002-02-05 12:17                       ` Diego olivier FERNANDEZ PONS
2002-02-05  3:40     ` [Caml-list] camlp4o problem (was: otags problem) Patrick M Doane
2002-02-05  8:57       ` Daniel de Rauglaudre
2002-02-06  4:00         ` Patrick M Doane
2002-02-05 15:08     ` Hendrik Tews
2002-02-05 16:13       ` Daniel de Rauglaudre
2002-02-06 19:17         ` Yaron M. Minsky
2002-02-06 20:02           ` [Caml-list] Re: bug (was: camlp4o problem) Daniel de Rauglaudre
2002-02-04 22:15   ` [Caml-list] camlp4o problem (was: otags problem) Shivkumar Chandrasekaran
2002-02-05  2:49 [Caml-list] syntax change (was: camlp4o problem) Arturo Borquez

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=20020204162513.GA22263@chopin.ai.univie.ac.at \
    --to=markus@oefai.at \
    --cc=caml-list@inria.fr \
    --cc=daniel.de_rauglaudre@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;
as well as URLs for NNTP newsgroup(s).