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.1 required=5.0 tests=AWL,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 74C29BC6B for ; Fri, 11 May 2007 16:51:25 +0200 (CEST) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.232]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l4BEpOqu005272 for ; Fri, 11 May 2007 16:51:25 +0200 Received: by nz-out-0506.google.com with SMTP id l8so1072599nzf for ; Fri, 11 May 2007 07:51:24 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ajWIV7G8s7jO1ZOGymXZLHiInLOEGns5jvuyS8UrSWJlST/YdkVThZNh0OM3HuQ/KpN07lotq/MHXIA2DeMrWuo2Gt3hILPpl8tSf4c6IAqhdb6CgpkgT1I2nQdMsdKUjzw1dPUA1PKJ0T9mZqqJAP9GK0ZRHshkXqeoor/uOzI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oQevAwc4lsHF4ctWpSP+qVuQI6nB7Pt08/IqYU3akYJsIcWn3TaobCuv3mob9j7F82yd6Y+MLaGK63joG0/E77Hv9PR+OXyVKnY9iYFP26NNY4LkKMd+hNMYkAeSLJgMR9euexib7XGerMnJGbCTYgnGXuALkM+8ADrVP2PzyIE= Received: by 10.115.109.1 with SMTP id l1mr960813wam.1178895083853; Fri, 11 May 2007 07:51:23 -0700 (PDT) Received: by 10.114.183.4 with HTTP; Fri, 11 May 2007 07:51:22 -0700 (PDT) Message-ID: Date: Fri, 11 May 2007 16:51:22 +0200 From: "Nicolas Pouillard" To: brogoff Subject: Re: [Caml-list] Custom operators in the revised syntax Cc: caml-list@inria.fr In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1884660607.20070511161455@moldavcable.com> X-j-chkmail-Score: MSGID : 464482EC.001 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 464482EC.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; syntax:01 camlp:01 syntax:01 patching:01 syntaxes:01 haskell:01 infix:01 foo:01 haskell:01 ocaml:01 syntactical:01 ocaml:01 2007,:98 guideline:98 wrote:01 On 5/11/07, brogoff wrote: > On Fri, 11 May 2007, Nicolas Pouillard wrote: > > This seems reasonable, but that's more a guideline. The feature can be > > present for that wants it. Moreover Camlp4 is about changing the > > syntax, so one can buy the revised syntax without the fact of patching > > syntaxes but features are here. > > Any chance we could have something like in Haskell where you easily > define new infix names? Something general like: x `foo` y ? > Speaking of Haskell and Revised, one of the things I like about Revised > over Ocaml syntax (that lots of people dislike it seems) is the > additional bracketing. Most of the syntactical annoyances I have with > Ocaml are usually connected with bracketing. Someone once quipped that > all problems with ML syntax can be fixed with some parentheses, and I > have to admit that quip makes sense. So I prefer Revised as an > alternative syntax over Python/Haskell influenced approaches. In Haskell you can put brackets and semi-colons if you dislike significant layout. -- Nicolas Pouillard