From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 14FF87FC86 for ; Thu, 19 Mar 2015 18:23:16 +0100 (CET) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of milanst@gmail.com) identity=pra; client-ip=209.85.213.175; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="milanst@gmail.com"; x-sender="milanst@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of milanst@gmail.com designates 209.85.213.175 as permitted sender) identity=mailfrom; client-ip=209.85.213.175; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="milanst@gmail.com"; x-sender="milanst@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-ig0-f175.google.com) identity=helo; client-ip=209.85.213.175; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="milanst@gmail.com"; x-sender="postmaster@mail-ig0-f175.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BGAABGBQtVlK/VVdFchDIEgkNGyQ4CgUUHTAEBAQEBAREBAQEBBwsLCRIwhBABAQQMBhEEGQEbHQEDDAYDAgsNAgImAgIiAREBBQEcBhMih3gBAxGVRZBWPjGLMYFrgneRHwoZJw1UhFUBAQEBAQUBAQEBGAEFDoETiXaEcQeCaIFFAQSaNoEbj0aBfRIjgQwJhCwiMYJDAQEB X-IPAS-Result: A0BGAABGBQtVlK/VVdFchDIEgkNGyQ4CgUUHTAEBAQEBAREBAQEBBwsLCRIwhBABAQQMBhEEGQEbHQEDDAYDAgsNAgImAgIiAREBBQEcBhMih3gBAxGVRZBWPjGLMYFrgneRHwoZJw1UhFUBAQEBAQUBAQEBGAEFDoETiXaEcQeCaIFFAQSaNoEbj0aBfRIjgQwJhCwiMYJDAQEB X-IronPort-AV: E=Sophos;i="5.11,430,1422918000"; d="scan'208";a="126800901" Received: from mail-ig0-f175.google.com ([209.85.213.175]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 19 Mar 2015 18:23:15 +0100 Received: by igcqo1 with SMTP id qo1so81437181igc.0 for ; Thu, 19 Mar 2015 10:23:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=jWS2KgvPkz9zcTFd3JrUK8W//n1dKuHljY6670LWzLU=; b=AFcp3xbMq0nFltMJbh3sBWdwP3ww8CienY8xTxSxuNkB2LH9JFnjPJjD5OLlS4PBkG /Z6VrHfhlU+FkVSGGKlrg47ipyq5QmrRvwp7BmR5DaumRke6hseM9sdYYO/0eQGgdCXe CKXZwIJKc7Y8ZvYokpC2sOJ87dkb0F2Z5j98MlMB6oRu1Itr7s/iUbpHjroY46zSXIYy Y25yMjnTDcNN7uO4OZRO8PU7TAQisAU2aHljQggACBokoQOuPII9NL5nnWzkzNmtwa9g 2Qvs8QSHZAysK6xMXnGCiZCRF5xYzqNT64iGBm5WjOkFtkpL8p2WRcjsVTYi/BO2tXNj nm2w== X-Received: by 10.50.119.229 with SMTP id kx5mr18323426igb.42.1426785794458; Thu, 19 Mar 2015 10:23:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.154.134 with HTTP; Thu, 19 Mar 2015 10:22:34 -0700 (PDT) In-Reply-To: <550B0441.6010801@lakaban.net> References: <2AB388B4D07D4DDABA30298A7C890319@erratique.ch> <596DAEC11B474882835CEA10AAACE35E@erratique.ch> <87E7B1EBF3144E7C844448D0F5EBB407@erratique.ch> <20ABBB1C7E4B44E083BECF14EB99E72F@erratique.ch> <550B0441.6010801@lakaban.net> From: =?UTF-8?Q?Milan_Stanojevi=C4=87?= Date: Thu, 19 Mar 2015 13:22:34 -0400 Message-ID: To: =?UTF-8?B?RnLDqWTDqXJpYyBCb3Vy?= Cc: Caml List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Caml-list] GADT existential escape On Thu, Mar 19, 2015 at 1:15 PM, Fr=C3=A9d=C3=A9ric Bour wrote: > Indeed, open variants can have type parameters. > But exceptions really are sugar over a non-parameterized open variant. If your OCaml version supports open variants, then exceptions and open variants are exactly the same. For example, this is legal code: type exn +=3D Foo : 'a list -> exn