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.6 required=5.0 tests=NO_REAL_NAME 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 6C177BC6B for ; Fri, 29 Jun 2007 17:57:31 +0200 (CEST) Received: from smtp.janestcapital.com (www.janestcapital.com [66.155.124.107]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l5TFvTJo020400 for ; Fri, 29 Jun 2007 17:57:30 +0200 Received: from qsmtp.delacy.com [38.96.172.125] by janestcapital.com with ESMTP (SMTPD-9.10) id ABF8022C; Fri, 29 Jun 2007 11:57:44 -0400 Received: from nyc-qws-001.delacy.com ([172.25.131.101] helo=nyc-qws-001) by qsmtp.delacy.com with smtp (Exim 4.62) (envelope-from ) id 1I4Iqc-0002Ad-Ri for caml-list@inria.fr; Fri, 29 Jun 2007 11:57:26 -0400 Received: by nyc-qws-001 (sSMTP sendmail emulation); Fri, 29 Jun 2007 11:57:26 -0400 From: pzimmer@janestcapital.com Subject: Re: [Caml-list] let int = ?([' ' '\t'] '-') digits+ To: Caml List In-Reply-To: <200706291639.39529.jon@ffconsultancy.com> References: <200706291639.39529.jon@ffconsultancy.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Fri, 29 Jun 2007 11:57:26 -0400 Message-Id: <1183132646.25733.106.camel@nyc-qws-001.delacy.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 (2.6.3-1.fc5.5) X-Miltered: at discorde with ID 46852BE9.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; 0100,:01 ocaml's:01 lexer:01 wrote:01 caml-list:01 int:01 let:03 fri:05 interpreted:05 '-':07 mean:08 rather:08 handled:09 idea:13 write:17 Do you really want x-3*7 to be interpreted as (x (-3)) * 7 ? 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? >