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=0.1 required=5.0 tests=AWL,MAILTO_TO_SPAM_ADDR 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 EA64EBC0B for ; Tue, 16 Jan 2007 06:55:31 +0100 (CET) Received: from hedwig1.umh.ac.be (hedwig2.umh.ac.be [193.190.193.73]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l0G5tV4J030080 for ; Tue, 16 Jan 2007 06:55:31 +0100 Received: from poincare.swapping.umh.ac.be (hedwig2 [193.190.193.73]) by hedwig1.umh.ac.be (8.13.6/8.13.6) with ESMTP id l0G5ueP95230672; Tue, 16 Jan 2007 06:56:46 +0100 Received: from [127.0.0.1] (helo=localhost) by poincare.swapping.umh.ac.be with esmtp (Exim 4.63) (envelope-from ) id 1H6hHv-000309-VU; Tue, 16 Jan 2007 06:55:16 +0100 Date: Tue, 16 Jan 2007 06:55:15 +0100 (CET) Message-Id: <20070116.065515.246091320.Christophe.Troestler@umh.ac.be> To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Ocaml compiler features From: Christophe TROESTLER In-Reply-To: <45AC60CB.4070408@gmail.com> References: <45A87011.8080203@gmail.com> <20070115103556.GB12311@furbychan.cocan.org> <45AC60CB.4070408@gmail.com> X-Face: #2fb%mPx>rRL@4ff~TVgZ"<[:,oL"`TUEGK/[8/qb58~C>jR(x4A+v/n)7BgpEtIph_neoLKJBq0JBY9:}8v|j Organization: Universite de Mons-Hainaut (http://math.umh.ac.be/an/) X-Mailer: Mew version 5.1.52 on Emacs 22.0.92 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.1 (www dot roaringpenguin dot com slash mimedefang) X-Miltered: at discorde with ID 45AC68D3.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 compiler:01 christophe:01 troestler:01 christophe:01 troestler:01 umh:01 hmmm:01 ocaml:01 2007,:98 edgar:98 edgar:98 attitude:98 wrote:01 wrote:01 On Mon, 15 Jan 2007, Edgar Friendly wrote: > > 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. Just pretend parentheses are compulsory :). (What would happen in C if we left the braces out anyway! Go and change C instead, this will affect far more people!) BTW, learning a language by saying you want to change it (before you even did any interesting programming in it) is not IMHO the most beneficial attitude. It is really kind of you to want to help us to "improve the world of ocaml" but shouldn't you learn the language inside out and write two or three projects in it first ? My 2^(-10)¤ (with or without parentheses), C.