caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Daniel de Rauglaudre <daniel.de_rauglaudre@inria.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Future of Camlp4
Date: Fri, 11 Oct 2002 15:15:26 +0200	[thread overview]
Message-ID: <20021011151526.A801@verdot.inria.fr> (raw)
In-Reply-To: <Pine.LNX.4.21.0210111314410.21652-100000@mlabdial.hit.bme.hu>; from kgergely@mlabdial.hit.bme.hu on Fri, Oct 11, 2002 at 01:34:39PM +0200

Hi,

On Fri, Oct 11, 2002 at 01:34:39PM +0200, Kontra, Gergely wrote:

> I agree, camlp4 IS useful. (Exploring the alternative syntax)
> I just afraid of developing in ocaml, if there exists two version of the
> syntax.

No: there is no two versions of the syntax, just one. OCaml has its
syntax, and it is the official one.

Let us compare with X window and the window managers. The X server
does not give by default any window manager: when you start X, you
just have a background and a mouse, and you can move it, that's all.
X can receive orders to create windows, move them, but by default,
it does nothing.

This is like the core of OCaml: the semantics. Now, it is impossible
to have a semantics without syntax. The same way, it is impossible to
have a system of windows without window manager. Hence, there is a
syntax, a given syntax. It could be compared with, say, the window
manager KDE.

Now, you man consider that KDE has many defaults. You may be
insterested in playing with "window managers", i.e. "syntax
tools". This is the gool of Camlp4.

OCaml does not need Camlp4, and it seems that the tendancy of the
Cristal team does not include experiments and developments about
syntax.

  ----

But Camlp4 can be useful even if you want to stay inside the official
syntax: you can do your small syntax extensions, you can use
quotations, you can use extensible grammars, all of that in the
official syntax. BTW, the manual and tutorial of Camlp4 gives its
examples in the official syntax.

The revised syntax, and, the Scheme syntax are just games with Camlp4.
Games or... research! We want to proove that many things can be done
with syntax. Perhaps, latter, a good consensus can happen with one of
the syntax Camlp4 developped. For the moment, it is not the case: the
OCaml team prefers keeping its syntax, despite its drawbacks that the
Revised syntax tries to fix.

I add that having its own syntx is not a problem of communication:
Camlp4 provides a pretty printer in the official syntax. You can
therefore understand the programs of the other people. And the
Revised syntax is close to the official syntax: you can read it
directly.

> Another thing, that bothers me is the do { } syntax. It seems a bit
> silly mixture of some shell and C syntax, I think either do ... done
> or { ... } would be a good choice (or support both, this way bash
> and C programmers will be happy ;))

Ha, if you are interested in the "Revised syntax", we can talk about
its choices, indeed. For the moment, I did not found people really
interested in making a "team" about a "New Revised syntax". The main
reason is that people are not shocked by the same things! We could
not know what are the points we want to talk about.

> Ooops, so I'd like to know what is the tendecy: will the alternative
> syntax be a new standard, or users should use the old syntax, and the
> alternative syntax supporting is their problem?

IMHO, the OCaml team is very very far from adopting a new syntax. But
using alternative syntaxes cannot be considered as a "problem" thanks
to the flexibility of Camlp4: I wrote GeneWeb entirely in Revised
syntax (45000 lines of code) and I am sure that it prevents nobody
to make changes in it.

-- 
Daniel de RAUGLAUDRE
daniel.de_rauglaudre@inria.fr
http://cristal.inria.fr/~ddr/
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  parent reply	other threads:[~2002-10-11 13:15 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-06 18:55 [Caml-list] Threats on future " Daniel de Rauglaudre
2002-10-06 19:23 ` Chris Hecker
2002-10-06 19:52   ` Daniel de Rauglaudre
2002-10-06 21:01   ` brogoff
2002-10-06 21:09     ` Daniel de Rauglaudre
2002-10-06 19:29 ` Oleg
2002-10-06 20:01   ` Daniel de Rauglaudre
2002-10-06 20:24     ` Alessandro Baretta
2002-10-06 20:24       ` Daniel de Rauglaudre
     [not found]         ` <200210062143.g96Lhix15834@orchestra.cs.caltech.edu>
2002-10-07  2:47           ` Daniel de Rauglaudre
2002-10-06 20:28     ` Dave Mason
2002-10-06 20:50       ` Daniel de Rauglaudre
2002-10-06 20:45     ` Oleg
2002-10-06 21:03       ` Daniel de Rauglaudre
2002-10-06 21:46         ` Florian Douetteau
2002-10-07  2:56           ` Daniel de Rauglaudre
2002-10-06 23:54     ` Markus Mottl
2002-10-07  9:06       ` Daniel de Rauglaudre
2002-10-11 11:34       ` Kontra, Gergely
2002-10-11 12:56         ` Alessandro Baretta
2002-10-11 13:15         ` Daniel de Rauglaudre [this message]
2002-10-12 21:45           ` [Caml-list] Future " Oleg
2002-10-13  9:02             ` Daniel de Rauglaudre
2002-10-11 16:36         ` [Caml-list] Syntax brogoff
2002-10-07  7:21 ` [Caml-list] Threats on future of Camlp4 Sven LUTHER
2002-10-07  8:52   ` Daniel de Rauglaudre
2002-10-07 11:25     ` Sven LUTHER
2002-10-07 11:30       ` Daniel de Rauglaudre
2002-10-07 11:55         ` Sven LUTHER
2002-10-08  7:57     ` Alessandro Baretta
     [not found]       ` <nhalm59cf0s.fsf@malabar.mitre.org>
2002-10-08 14:05         ` Alessandro Baretta
  -- strict thread matches above, loose matches on Subject: below --
2003-02-06 12:28 [Caml-list] Future " Daniel de Rauglaudre
2003-02-06 12:55 ` Jérôme Marant
2003-02-06 13:01 ` Sven Luther
2003-02-06 13:23   ` Daniel de Rauglaudre
2003-02-06 13:59 ` Mattias Waldau
2003-02-06 14:20 ` Xavier Leroy
2003-02-06 15:59   ` Sven Luther
2003-02-06 16:30     ` Xavier Leroy
2003-02-06 16:10   ` Georges Mariano
2002-10-04 15:14 [Caml-list] Pattern matching and strings Luc Maranget
2002-10-04 19:38 ` Alessandro Baretta
2002-10-05  6:34   ` [Caml-list] Camlp4 (Was: Pattern matching and strings) Daniel de Rauglaudre
2002-10-05 12:47     ` Sven LUTHER
2002-10-05 12:42       ` Daniel de Rauglaudre
2002-10-05 13:41         ` Michel Mauny
2002-10-05 13:47           ` Daniel de Rauglaudre
2002-10-05 14:09             ` Michel Mauny
2002-10-05 18:13               ` Alessandro Baretta
2002-10-05 20:30                 ` [Caml-list] Future of Camlp4 Daniel de Rauglaudre

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=20021011151526.A801@verdot.inria.fr \
    --to=daniel.de_rauglaudre@inria.fr \
    --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;
as well as URLs for NNTP newsgroup(s).