From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA13149; Wed, 5 Sep 2001 10:02:59 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA12796 for ; Wed, 5 Sep 2001 10:02:58 +0200 (MET DST) Received: from nenuphar.saclay.cea.fr (nenuphar.saclay.cea.fr [132.166.192.7]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f8582vb00006; Wed, 5 Sep 2001 10:02:57 +0200 (MET DST) Received: from muguet.saclay.cea.fr (muguet.saclay.cea.fr [132.166.192.6]) by nenuphar.saclay.cea.fr (8.9.1a/8.9.1/CEAnet-relay-5.0.D20+Y2K) with ESMTP id KAA25113; Wed, 5 Sep 2001 10:02:57 +0200 (MET DST) Received: from harpie.saclay.cea.fr (harpie.saclay.cea.fr [132.166.133.152]) by muguet.saclay.cea.fr (8.9.1a/8.9.1/CEAnet-relay-5.2.D20+Y2K) with ESMTP id KAA07706; Wed, 5 Sep 2001 10:02:56 +0200 (MET DST) Received: by harpie.saclay.cea.fr (8.8.8+Sun/CEANET.2.0.1) id KAA08081; Wed, 5 Sep 2001 10:02:59 +0200 (MET DST) From: STARYNKEVITCH Basile MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <15253.56371.266115.924816@gargle.gargle.HOWL> Date: Wed, 5 Sep 2001 10:02:59 +0200 To: Daniel de Rauglaudre CC: caml-list@inria.fr Subject: Re: [Caml-list] Different types of streams In-Reply-To: <20010905093407.E5393@verdot.inria.fr> References: <20010826202317.A9010@aimlin> <20010827114906.K13152@verdot.inria.fr> <20010905030335.E15035@hugo.int-evry.fr> <20010905093407.E5393@verdot.inria.fr> X-Mailer: VM 6.76 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Content-Transfer-Encoding: 8bit Content-Transfer-Encoding: 8bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk >>>>> "Daniel" == Daniel de Rauglaudre 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. 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: les flots par [< >] sont indispensables au module Genlex. Ils ne devraient donc pas être violemment supprimés (avant plusieurs années). Si Genlex disparaissait, il faudrait un autre procédé de lecture de haut niveau (autre que Pervasives.read_line et consors). A mon avis il ne faut surtout pas s' inspirer de l' infâme scanf du C. Les entrées formattées doivent être bien documentées car elles sont indispensables au débutant. Cordialement N.B. Any opinions expressed here are only mine, and not of my organization. N.B. Les opinions exprimees ici me sont personnelles et n engagent pas le CEA. --------------------------------------------------------------------- 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 ------------------- 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