From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.2 required=5.0 tests=AWL,MISSING_HEADERS, SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id C4B2BBC0B for ; Tue, 16 Jan 2007 06:21:18 +0100 (CET) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.237]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l0G5LHJF024371 for ; Tue, 16 Jan 2007 06:21:18 +0100 Received: by wr-out-0506.google.com with SMTP id 67so1349172wri for ; Mon, 15 Jan 2007 21:21:17 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=qtUr91w5KX1FVyGr7JcNWPggcCnygLv0qroNUWIpy04q5VDz87bDrxy2lc6N9wg8pmNjW5PV9HA5uO1LZmenAxeHJK8NE/cfBYwcV5PCt7pZGUWKferpfZbihQk/lbnLBxdCSRONRbRXg6/prgkivjvoH4zke7Vlzzk5QVeSqm4= Received: by 10.65.239.13 with SMTP id q13mr6964202qbr.1168924877256; Mon, 15 Jan 2007 21:21:17 -0800 (PST) Received: from ?192.168.0.18? ( [69.155.31.57]) by mx.google.com with ESMTP id e15sm2775253qba.2007.01.15.21.21.16; Mon, 15 Jan 2007 21:21:17 -0800 (PST) Message-ID: <45AC60CB.4070408@gmail.com> Date: Mon, 15 Jan 2007 23:21:15 -0600 From: Edgar Friendly User-Agent: Thunderbird 1.5.0.9 (X11/20061206) MIME-Version: 1.0 Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Ocaml compiler features References: <45A87011.8080203@gmail.com> <20070115103556.GB12311@furbychan.cocan.org> In-Reply-To: <20070115103556.GB12311@furbychan.cocan.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-j-chkmail-Score: MSGID : 45AC60CD.002 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 45AC60CD.002 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 compiler:01 hmmm:01 edgar:98 edgar:98 wrote:01 wrote:01 precedence:01 caml-list:01 parentheses:01 int:01 int:01 string:02 string:02 languages:03 Richard Jones wrote: > On Fri, Jan 12, 2007 at 11:37:21PM -0600, Edgar Friendly wrote: >> if y=1 then >> let z = 2 in >> print_int y; >> print_int z; >> else >> print_string "not one" > > Hmmm .. changing the precedence of operators to avoid two parentheses ... > I don't think that's good. No, I want to make the following code legal: if y = 1 then print_int y; print_int z; else print_string "not one" It's just an unnecessary stumbling block for programmers coming from other languages. E.