caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Alex Cowie <cowie@cs.unisa.edu.au>
To: STARYNKEVITCH Basile <Basile.Starynkevitch@cea.fr>
Cc: caml-list@inria.fr, cowie@cs.unisa.edu.au
Subject: Re: [Caml-list] Different types of streams
Date: Wed, 05 Sep 2001 18:43:58 +0930	[thread overview]
Message-ID: <200109050913.SAA29689@reason.levels.unisa.edu.au> (raw)
In-Reply-To: Your message of "Wed, 05 Sep 2001 10:02:59 +0200." <15253.56371.266115.924816@gargle.gargle.HOWL>

Basile Starynkevitch wrote "Wed, 05 Sep 2001 10:02:59 +0200." :
> >>>>> "Daniel" == Daniel de Rauglaudre <daniel.de_rauglaudre@inria.fr> writes:
>     Daniel>  On Wed, Sep 05, 2001 at 03:03:35AM +0200,
>     Daniel> Christian RINDERKNECHT wrote:
> 
> [...]
> 
>     >> As an aside: the performance of my parser was not a concern,
>     >> feasability was the main challenge. I nevertheless understand
>     >> it can be an important issue. I understood there was a plan to
>     >> remove the [< >] from OCaml, and to request users using camlp4,
>     >> is it correct?
> 
>     Daniel> Yes. Is it a problem?
> 
> Perhaps. standard Ocaml input is done (with the exception of low level
> input such as Pervasives.read_line etc....) with the "19.10 Module
> Genlex: a generic lexical analyzer" whose documentation mentions
> explicitly the [< >] construct.
> 
> Several ocaml programs would like to do input without a specific lexer
> or a parser. This is done thu Genlex which need the [< >] construct.
> 
> I suggest maintaining the [< >] for a while -ie for several years-
> (perhaps marking it explicitly as deprecated in the documentation). It
> should be probably acceptable to have the [< >] construct handled by a
> standard campl4 module, especially if/when camlp4 will be merged into
> the main ocaml package.
>

I would strongly support Basile's proposal to retain the [< >] in Ocaml core 
syntax.  I have been using Caml/Ocaml for 5-6 years and I have found that a 
high proportion of the programs I have written recently have used [< >] stream 
parsing.  The convenience of having this parsing facility within the Ocaml 
syntax should not be underestimated particularly for program development under 
the toplevel.

> Should the Genlex module be deprecated, a newer way of making high
> level input should be proposed. My opinion is that it should *not* be
> modelled on C's infamous scanf.
> 
> Formatted input should particularily well be explained, since it is a
> function needed by all newcomers. The first program you write is a
> hello world, and the second one asks for your name and age and tells
> you hello :-)
> 
> 
> Best regards to all
> 
> 
> [**resumé en français: deleted]
> 
> ---------------------------------------------------------------------
> Basile STARYNKEVITCH   ----  Commissariat à l Energie Atomique * France
> DRT/LIST/DTSI/SLA * CEA/Saclay b.528 (p111f) * 91191 GIF/YVETTE CEDEX 
> work email: Basile point Starynkevitch at cea point fr 
> home email: Basile point Starynkevitch at wanadoo point fr 
> -------------------

Alex Cowie
Research Fellow, Advanced Computing Research Centre
University of South Australia


-------------------
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:[~2001-09-05  9:15 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-26 18:23 Nicolas George
2001-08-27  9:49 ` Daniel de Rauglaudre
2001-08-27 17:47   ` Nicolas George
2001-08-28  8:20     ` Daniel de Rauglaudre
2001-08-28  9:33       ` Nicolas George
2001-08-29  8:39         ` Daniel de Rauglaudre
2001-09-05  1:03   ` Christian RINDERKNECHT
2001-09-05  7:34     ` Daniel de Rauglaudre
2001-09-05  8:02       ` STARYNKEVITCH Basile
2001-09-05  9:10         ` Daniel de Rauglaudre
2001-09-05  9:13         ` Alex Cowie [this message]
2001-09-05  9:30           ` Daniel de Rauglaudre
2001-09-05 10:58             ` Dave Mason
2001-09-05 12:06               ` Daniel de Rauglaudre
2001-09-05 12:56                 ` Dave Mason
2001-09-05 14:01                   ` Daniel de Rauglaudre
2001-09-05 13:29                 ` Nicolas George
2001-09-05 14:30                 ` Patrick M Doane
2001-09-05 14:44                   ` Daniel de Rauglaudre
2001-09-05 14:55                     ` Patrick M Doane
2001-09-05 19:39                     ` Brian Rogoff
2001-09-05 14:49                   ` [Caml-list] Camlp4 and CamlIDL in main distribution? Markus Mottl

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=200109050913.SAA29689@reason.levels.unisa.edu.au \
    --to=cowie@cs.unisa.edu.au \
    --cc=Basile.Starynkevitch@cea.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).