From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id AF87F7F30D for ; Tue, 12 Mar 2013 21:42:41 +0100 (CET) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of jacques.garrigue@gmail.com) identity=pra; client-ip=209.85.210.169; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="jacques.garrigue@gmail.com"; x-sender="jacques.garrigue@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of jacques.garrigue@gmail.com designates 209.85.210.169 as permitted sender) identity=mailfrom; client-ip=209.85.210.169; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="jacques.garrigue@gmail.com"; x-sender="jacques.garrigue@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-ia0-f169.google.com) identity=helo; client-ip=209.85.210.169; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="jacques.garrigue@gmail.com"; x-sender="postmaster@mail-ia0-f169.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjoIAJ+SP1HRVdKpkGdsb2JhbABDsmAHiVIBiDCBQwgWDgEBAQEJCRQUKIIpAQEEAUABLQsBAwELAQUFBAcNDSEhARIBBQEKEgYTEodwAwkGDKMvjy2EXCcDCkyIeBEBBQyMOYJEg0sDiHGKIIFlgWCBH4o+gzcWKYFZgmMt X-IPAS-Result: AjoIAJ+SP1HRVdKpkGdsb2JhbABDsmAHiVIBiDCBQwgWDgEBAQEJCRQUKIIpAQEEAUABLQsBAwELAQUFBAcNDSEhARIBBQEKEgYTEodwAwkGDKMvjy2EXCcDCkyIeBEBBQyMOYJEg0sDiHGKIIFlgWCBH4o+gzcWKYFZgmMt X-IronPort-AV: E=Sophos;i="4.84,833,1355094000"; d="scan'208";a="7124015" Received: from mail-ia0-f169.google.com ([209.85.210.169]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 12 Mar 2013 21:42:40 +0100 Received: by mail-ia0-f169.google.com with SMTP id j5so277789iaf.0 for ; Tue, 12 Mar 2013 13:42:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=QMQF3vE4JCG2Feoatmr1D+CM0rFvhKR/b6e6sndpl/I=; b=a+nmTE8w9lyHox3BgxrNAr2CNPVlXPuAWLi7kOe1ghfj4FB4GDonbeQGaZf/uXllUL P1Z3pk9hmt6Hil62YoK3A2G8hPgzFjEb67bbb483t0paqj0TxWV4CmmuMsmfUOd+NIAj AHTNHA4XAaz1NPaZ+dif29b+YDAtwar0zWdauOmxSfe5CyCOJa1kNC7AbDtLNoAJmhOQ HtxZHy4Xw/OJo71dsMmehx0rofesvIyoY37C26X+kXm5PSISO5iL8ueu8MSiziCmdqjV JAk5GjoIY28KDub9M/FHfMDVZbeYPsW0skHOaDpNEvYkxzmoaRu8jO/Wpx7IQOOzvpEP BoyA== MIME-Version: 1.0 X-Received: by 10.50.154.229 with SMTP id vr5mr13425647igb.49.1363120959243; Tue, 12 Mar 2013 13:42:39 -0700 (PDT) Sender: jacques.garrigue@gmail.com Received: by 10.50.173.70 with HTTP; Tue, 12 Mar 2013 13:42:38 -0700 (PDT) Received: by 10.50.173.70 with HTTP; Tue, 12 Mar 2013 13:42:38 -0700 (PDT) In-Reply-To: References: <513DC595.9020006@frisch.fr> <513F49BE.5010606@mcmaster.ca> Date: Wed, 13 Mar 2013 05:42:38 +0900 X-Google-Sender-Auth: RBmD5RNBhPXDUBQejmOo8WaJfmQ Message-ID: From: Jacques Garrigue To: Gabriel Scherer Cc: Yaron Minsky , OCaML List Mailing , Jacques Carette Content-Type: multipart/alternative; boundary=14dae93408878fe04404d7c054b7 Subject: Re: [Caml-list] Record field disambiguation in 4.01 --14dae93408878fe04404d7c054b7 Content-Type: text/plain; charset=ISO-8859-1 It's just that when you look up the label you get a list in reverse order: last one first. Would it be really clearer to reverse it at again when printing? Jacques 2013/03/13 2:08 "Gabriel Scherer" : > Also on the new warning (thanks for the quick change!): I find it a > bit strange that the message gives a list of possibilities then says > "The first one was selected", while in my mental model the *last* > declared type is chosen by default. I don't know if it's actually > possible to list types by declaration order (levels?), but maybe you > could at least arrange so that the selected one appears last? Or at > least you could reword into "The last declaration of this field has > type M.t, but types M.u and N.t would also be valid". > > On Tue, Mar 12, 2013 at 4:29 PM, Jacques Carette > wrote: > > On 13-03-12 11:05 AM, Jacques Garrigue wrote: > >> > >> I have improved the warning (revision 13395), so that it tells you the > >> types involved. This should actually help in some hairy situations. > > > > > > Would it also make sense to give the fully qualified names for the > ambiguous > > fields? This should also give a strong hint as to where the conflict > comes > > from. > > > > (another) Jacques > > > > > > > > -- > > Caml-list mailing list. Subscription management and archives: > > https://sympa.inria.fr/sympa/arc/caml-list > > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > > Bug reports: http://caml.inria.fr/bin/caml-bugs > --14dae93408878fe04404d7c054b7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

It's just that when you look up the label you get a list in reverse = order: last one first.
Would it be really clearer to reverse it at again when printing?

Jacques

2013/03/13 2:08 "Gabriel Scherer" <= gabriel.scherer@gmail.com&= gt;:
Also on the new warning (thanks for the quick change!): I find it a
bit strange that the message gives a list of possibilities then says
"The first one was selected", while in my mental model the *last*=
declared type is chosen by default. I don't know if it's actually possible to list types by declaration order (levels?), but maybe you
could at least arrange so that the selected one appears last? Or at
least you could reword into "The last declaration of this field has
type M.t, but types M.u and N.t would also be valid".

On Tue, Mar 12, 2013 at 4:29 PM, Jacques Carette <carette@mcmaster.ca> wrote:
> On 13-03-12 11:05 AM, Jacques Garrigue wrote:
>>
>> I have improved the warning (revision 13395), so that it tells you= the
>> types involved. This should actually help in some hairy situations= .
>
>
> Would it also make sense to give the fully qualified names for the amb= iguous
> fields? =A0This should also give a strong hint as to where the conflic= t comes
> from.
>
> (another) =A0Jacques
>
>
>
> --
> Caml-list mailing list. =A0Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports:
http://caml.inria.fr/bin/caml-bugs
--14dae93408878fe04404d7c054b7--