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 mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id D520B7FC86 for ; Thu, 19 Mar 2015 17:47:41 +0100 (CET) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of milanst@gmail.com) identity=pra; client-ip=209.85.223.176; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="milanst@gmail.com"; x-sender="milanst@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of milanst@gmail.com designates 209.85.223.176 as permitted sender) identity=mailfrom; client-ip=209.85.223.176; receiver=mail3-smtp-sop.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 (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-ie0-f176.google.com) identity=helo; client-ip=209.85.223.176; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="milanst@gmail.com"; x-sender="postmaster@mail-ie0-f176.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0A/AACt/ApVm7DfVdFchDIEgwnJDAKBRAdMAQEBAQEBEQEBAQEBBgsLCRQuhBABAQMBEhEdARsdAQMBCwYFCw8CJgICIgERAQUBHAY1h3gBAwkIpgQ+MYsxgWuCd5EbChknDVSEVQEBAQEBBQEBAQEYAQUOgROJdoRxB4JogUUFmjaSXhIjgQwJhCwiMYJDAQEB X-IPAS-Result: A0A/AACt/ApVm7DfVdFchDIEgwnJDAKBRAdMAQEBAQEBEQEBAQEBBgsLCRQuhBABAQMBEhEdARsdAQMBCwYFCw8CJgICIgERAQUBHAY1h3gBAwkIpgQ+MYsxgWuCd5EbChknDVSEVQEBAQEBBQEBAQEYAQUOgROJdoRxB4JogUUFmjaSXhIjgQwJhCwiMYJDAQEB X-IronPort-AV: E=Sophos;i="5.11,430,1422918000"; d="scan'208";a="104020324" Received: from mail-ie0-f176.google.com ([209.85.223.176]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 19 Mar 2015 17:47:40 +0100 Received: by iecsl2 with SMTP id sl2so71046633iec.1 for ; Thu, 19 Mar 2015 09:47:39 -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; bh=L90+vQ0iw1gNIxJ3PMHJOkgQFv5pfa90qFdKEfgDhjQ=; b=ZiL9rnY2E7DsBr/ZXAHqKfZVu3lYKVpHiGqh9cVEWzump7mUSFbYbdq8M0aVNxJ6oG awxV/w8tjTjLuFbPD+QJO1fNFG070b+gbrG8RaR/VU03rddYLiG7jMh4By8tIQ0GdAJM q5RtvyuYWIT44U1L6kxQcXRZU+fwGJMV2/hzRbucBJnHhoO86PnB7Qu107qE8gYlqfc1 NrIss03R8/9s/38Xl71P+5UWZ56yUmlZPcVhqrgeBRn2ONCe6xvgo55mB/vWqoUlhKhO 76JrstfL82erJtJEHQ11aWP6rrGWj8z2M1+3arTr6WVYP75z+aiEfivQ64cbfq6JNxyc VpSQ== X-Received: by 10.50.122.68 with SMTP id lq4mr18080527igb.10.1426783659536; Thu, 19 Mar 2015 09:47:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.154.134 with HTTP; Thu, 19 Mar 2015 09:46:59 -0700 (PDT) In-Reply-To: <87E7B1EBF3144E7C844448D0F5EBB407@erratique.ch> References: <2AB388B4D07D4DDABA30298A7C890319@erratique.ch> <596DAEC11B474882835CEA10AAACE35E@erratique.ch> <87E7B1EBF3144E7C844448D0F5EBB407@erratique.ch> From: =?UTF-8?Q?Milan_Stanojevi=C4=87?= Date: Thu, 19 Mar 2015 12:46:59 -0400 Message-ID: To: =?UTF-8?Q?Daniel_B=C3=BCnzli?= Cc: Jeremy Yallop , Jeremie Dimino , Caml-list Content-Type: text/plain; charset=UTF-8 Subject: Re: [Caml-list] GADT existential escape > N.B. As it stands this is slightly less efficient than using open variants, since you'd have to allocate an exn value for checking equality. > Exceptions and open variants are actually exactly the same. "exception" is basically a syntactic sugar now. exception Foo of int is the same as type exn += Foo of int.