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.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id C0DD6BC69 for ; Fri, 11 May 2007 15:15:45 +0200 (CEST) Received: from moldavcable.com (moldavcable.com [89.187.37.10]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l4BDFjx2026286 for ; Fri, 11 May 2007 15:15:45 +0200 Received: from localhost (localhost.localdomain [127.0.0.1]) by moldavcable.com (Postfix) with ESMTP id 0796C6B9A9 for ; Fri, 11 May 2007 16:15:23 +0300 (EEST) Received: from moldavcable.com ([127.0.0.1]) by localhost (mlc-gw-l.moldavcable.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29750-04 for ; Fri, 11 May 2007 16:14:54 +0300 (EEST) Received: from kas30pipe.localhost (localhost.localdomain [127.0.0.1]) by moldavcable.com (Postfix) with SMTP id D1C826B9F9 for ; Fri, 11 May 2007 16:14:49 +0300 (EEST) Received: from pm053.mlc.local (pm053 [192.168.50.53]) by moldavcable.com (Postfix) with ESMTP id 105826B9A9 for ; Fri, 11 May 2007 16:14:47 +0300 (EEST) Date: Fri, 11 May 2007 16:14:55 +0300 From: dmitry grebeniuk X-Mailer: The Bat! (v3.85.02) Home Reply-To: dmitry grebeniuk Organization: Moldavcable X-Priority: 3 (Normal) Message-ID: <1884660607.20070511161455@moldavcable.com> To: "Nicolas Pouillard" Subject: Re: [Caml-list] Custom operators in the revised syntax In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release X-SpamTest-Info: Not protected X-Virus-Scanned: by amavisd-new at moldavcable.com X-Miltered: at concorde with ID 46446C81.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; grebeniuk:01 syntax:01 syntax:01 infix:01 readable:01 shalom:98 imho:01 precedence:01 caml-list:01 dmitry:01 dmitry:01 func:01 define:01 revised:02 revised:02 Shalom, Nicolas. NP> Today it's about custom operators. In the original syntax everyone NP> knows that's easy to define and use custom operators like ++, -->, >>>>, +|, =?=, ... and as many as you want. As for me, the lack of custom infix operators in revised syntax is a feature that allows to keep code clean, without any "=?=" or "<<+". The code "(func arg1 arg2)" is imho much more readable than "arg1 op arg2" because: 1. function name usually says something about the meaning of the function, 2. you don't need to remember operator's precedence and associativity to understand the code. -- WBR, dmitry mailto:gds-mlsts@moldavcable.com