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 141F7BC69 for ; Thu, 3 May 2007 11:16:11 +0200 (CEST) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.238]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l439G9rA011102 for ; Thu, 3 May 2007 11:16:10 +0200 Received: by nz-out-0506.google.com with SMTP id l8so660911nzf for ; Thu, 03 May 2007 02:16:09 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=S5XAmbuXX6jdzylzWfyQYlPBwu6N3wUKcyVHzIFFc+o1B82kk97JlW6uaFDjs1e45luL9U9W8BmwW/acDC1qjQxaHxIss4sgFiedCoP23nBtNQ5JmkiY6IONRfrvpiVKm/e0aOlck3onpwio4BBlS8oHjEpjFbTl6HqMEtSw5Vo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ttr0GtEBIpe/iyxTMX11CqdxcJWfFzlMFjlEp58hLWIXk2HoooPvMZFhy4WgDY9eiV2zwlSjbo5jsbf37oy1w50aBWk7A5Y1FhTYBUpZ5xM3U5DZMSSmrlX6t1sHL3DfS9cXtxHCgKEVUF6hQjX9+zMt4RE0wgCHXnNlbelgdlk= Received: by 10.114.111.1 with SMTP id j1mr601874wac.1178183769144; Thu, 03 May 2007 02:16:09 -0700 (PDT) Received: by 10.114.183.15 with HTTP; Thu, 3 May 2007 02:16:09 -0700 (PDT) Message-ID: Date: Thu, 3 May 2007 11:16:09 +0200 From: "Nicolas Pouillard" To: "Caml List" , "Aleksey Nogin" Subject: Re: [Caml-list] 3.10+beta: Camlp4: AST mapping treats record labels as patterns; should they have type ident instead? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <462508EC.2090302@metaprl.org> <462643BD.8050309@metaprl.org> X-j-chkmail-Score: MSGID : 4639A859.001 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 4639A859.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 wrote:01 wrote:01 rec:01 rec:01 workaround:01 caml-list:01 ident:02 ast:02 binding:02 binding:02 objects:02 objects:02 labels:03 seems:03 On 4/20/07, Nicolas Pouillard wrote: > On 4/18/07, Aleksey Nogin wrote: > > On 18.04.2007 01:11, Nicolas Pouillard wrote: > > [...] > > > > For expressions it's more complex > > > > > Is it the same issue as the workaround discussion above - the "proper" > > way to make this distinction would be to introduce a separare > > rec_binding type similar, but separate from the binding one? But is it > > true that the "b; b" case in the binding type is only used for records? > > If so, it would seem that splitting the binding type would not result in > > that much duplication. Of course, I am only starting to understand the > > new setup, no I may be completely wrong here. > > Yes it is just used for records and objects {< f1 = e1 ; ... ; fN = eN >}. > > But having one more category seems heavy, I have to think more about it. > Ok, I've done it. I've added the rec_binding type, quotation and use it for record expressions and objects {< ... >}. -- Nicolas Pouillard