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 5B652BC6B for ; Fri, 29 Jun 2007 20:29:33 +0200 (CEST) Received: from ipmail03.adl2.internode.on.net (ipmail03.adl2.internode.on.net [203.16.214.135]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l5TITV7j024102 for ; Fri, 29 Jun 2007 20:29:32 +0200 X-IronPort-AV: E=Sophos;i="4.16,476,1175437800"; d="scan'208";a="109526069" Received: from ppp59-167-2-129.lns1.syd7.internode.on.net (HELO [192.168.1.201]) ([59.167.2.129]) by ipmail03.adl2.internode.on.net with ESMTP; 30 Jun 2007 03:59:30 +0930 Subject: Re: [Caml-list] let int = ?([' ' '\t'] '-') digits+ From: skaller To: Jon Harrop Cc: Caml List In-Reply-To: <200706291639.39529.jon@ffconsultancy.com> References: <200706291639.39529.jon@ffconsultancy.com> Content-Type: text/plain Date: Sat, 30 Jun 2007 04:29:29 +1000 Message-Id: <1183141769.5305.22.camel@rosella.wigram> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 46854F8B.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; 0100,:01 ocaml's:01 lexer:01 sourceforge:01 wrote:01 caml-list:01 int:01 let:03 fri:05 '-':07 break:08 mean:08 mean:08 rather:08 rather:08 On Fri, 2007-06-29 at 16:39 +0100, Jon Harrop wrote: > If OCaml's lexer handled numbers of this format, would it be possible to > write: > > f -1 -2 > > to mean: > > f (-1) (-2) > > rather than: > > f - 1 - 2 > > Is this a good idea? No, I don't think so, because -1 and - 1 would then be distinct, and there's be confusion with: x-1 which would actually mean x (-1) rather than x - 1 That would break reams of code .. ;( -- John Skaller Felix, successor to C++: http://felix.sf.net