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 JAA09444; Thu, 10 Apr 2003 09:49:15 +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 JAA09258 for ; Thu, 10 Apr 2003 09:49:14 +0200 (MET DST) Received: from decis.be ([194.78.219.157]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h3A7nEX12263 for ; Thu, 10 Apr 2003 09:49:14 +0200 (MET DST) Received: from decis.be ([192.168.0.20]) by decis.be ([194.78.219.157]) with SMTP (MDaemon.PRO.v6.5.0.R) for ; Thu, 10 Apr 2003 09:52:16 +0200 Message-ID: <3E952434.68E8CD14@decis.be> Date: Thu, 10 Apr 2003 09:58:44 +0200 From: Frederic van der Plancke Reply-To: fvdp@decis.be, fplancke@hotmail.com Organization: Decis X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: caml-list@pauillac.inria.fr Subject: [Caml-list] { ... } vs ( ... ) vs begin ... end References: <87smsrukf6.fsf@cs.uga.edu> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Authenticated-Sender: fplancke@decis.be X-MDRemoteIP: 192.168.0.20 X-Return-Path: fvdp@decis.be X-MDaemon-Deliver-To: caml-list@pauillac.inria.fr X-Spam: no; 0.00; plancke:01 fvdp:01 qlogic:01 gratuitous:01 afaik:01 writes:01 constructs:02 match:02 ambiguous:02 type-checker:02 wrote:03 ambiguity:03 usefull:03 daniel:06 practice:06 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > Brian Hurt writes: > > > On Tue, 8 Apr 2003, Daniel Andor wrote: > > > >> On Tuesday 08 April 2003 8:04 pm, Brian Hurt wrote: > >> > If we're going to be introducing gratuitous backwards incompatiblities, > >> > can we please do it for something usefull? Like say replacing begin/end > >> > with { and }. > >> > >> If I may be a beginner here: how does "begin ... end" differ from "( ... )"? > >> In practice I've found them to be interchangable, but that could just be an > >> accident. No, that's by design AFAIK. I'm no longer using begin-end, because I like punctuation to be light on the eye. > > > > At the linguistic level, not at all. At the text editor level, it's > > easier in vi to jump to match braces than matching begin/ends. You seem to have missed the difference between ( ... ) and { ... }, the message you answered used the first form. There's a big problem with introducing { ... } as synonymous for begin-end: constructs like { a = b } become ambiguous and only the type-checker can lift the ambiguity. Frédéric vdP ------------------- 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