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 LAA16678; Fri, 4 Oct 2002 11:22:11 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA16634 for ; Fri, 4 Oct 2002 11:22:11 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g949M4501960; Fri, 4 Oct 2002 11:22:04 +0200 (MET DST) Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA16590; Fri, 4 Oct 2002 11:22:04 +0200 (MET DST) From: Pierre Weis Message-Id: <200210040922.LAA16590@pauillac.inria.fr> Subject: Re: [Caml-list] syntaxes In-Reply-To: from "Kontra, Gergely" at "Oct 4, 102 09:40:47 am" To: kgergely@mlabdial.hit.bme.hu (Kontra, Gergely) Date: Fri, 4 Oct 2002 11:22:03 +0200 (MET DST) Cc: caml-list@inria.fr X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, > I've seen so far, that there are at least 2 version of syntax exists. > My only question is: why has ocaml different syntax than standard ML at > the places, where ocaml is not more efficient. > Eg. it is the same as writing => and ->. > Sometimes SML solution is shorter. > Records in ocaml is not optimal. From a record creation, the type should > be obvious, so labels can be reused in different type of records. And > there is the let ... in ... end (Ada like) construct, which can be used > to avoid ambiguity, (My opinion, that it should be used in try ... with > ... end and match ... end constructs, but forget it, uniform syntax may > be a more important point...) not talking about pattern matching in > function heads... > > Gergo > > +-[Kontra, Gergely @ Budapest University of Technology and Economics]-+ > | Email: kgergely@mcl.hu, kgergely@turul.eet.bme.hu | > | URL: turul.eet.bme.hu/~kgergely Mobile: (+36 20) 356 9656 | > +-------"Olyan langesz vagyok, hogy poroltoval kellene jarnom!"-------+ > . > Magyar php mirror es magyar php dokumentacio: http://hu.php.net > > ------------------- > 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 Read the FAQ: http://pauillac.inria.fr/caml/FAQ/FAQ_EXPERT-eng.html#sml The answer to the question Why is the syntax of Caml different from SML's one ? should be relevant to your concern. Let me know if this is not clear enough for your taste. Regards, Pierre Weis INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://pauillac.inria.fr/~weis/ ------------------- 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