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 7B4397EC6E for ; Wed, 29 Jan 2014 09:32:54 +0100 (CET) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of jon@ffconsultancy.com) identity=pra; client-ip=84.93.230.244; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="jon@ffconsultancy.com"; x-sender="jon@ffconsultancy.com"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of jon@ffconsultancy.com) identity=mailfrom; client-ip=84.93.230.244; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="jon@ffconsultancy.com"; x-sender="jon@ffconsultancy.com"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@avasout03.plus.net) identity=helo; client-ip=84.93.230.244; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="jon@ffconsultancy.com"; x-sender="postmaster@avasout03.plus.net"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AloCABS86FJUXeb0lWdsb2JhbABZrlaSRIEFFg4BAQEBBw0JCRIqgiUBAQEECAIdEz8NAwIJGC4ZIxsCBAEdBYd5yUEXjn8HhDgEjymeSw X-IPAS-Result: AloCABS86FJUXeb0lWdsb2JhbABZrlaSRIEFFg4BAQEBBw0JCRIqgiUBAQEECAIdEz8NAwIJGC4ZIxsCBAEdBYd5yUEXjn8HhDgEjymeSw X-IronPort-AV: E=Sophos;i="4.95,741,1384297200"; d="scan'208";a="55733931" Received: from avasout03.plus.net ([84.93.230.244]) by mail2-smtp-roc.national.inria.fr with ESMTP; 29 Jan 2014 09:32:54 +0100 Received: from XPS ([46.208.209.80]) by avasout03 with smtp id KkYs1n0021kdSZJ01kYtGF; Wed, 29 Jan 2014 08:32:53 +0000 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=VqIaXYGn c=1 sm=1 tr=0 a=0e+StC6m1dZv7qXQ+YhjwA==:117 a=0e+StC6m1dZv7qXQ+YhjwA==:17 a=0Bzu9jTXAAAA:8 a=XCxr5DcLagoA:10 a=Xub9RBUEA-sA:10 a=Kvk-SOs2Z7YA:10 a=kj9zAlcOel0A:10 a=r2vSxAw-AAAA:8 a=BR64nyZ84HQA:10 a=cksnCRrS2uqtilJh_ZAA:9 a=CjuIK1q_8ugA:10 a=vCVP-h_7wosA:10 a=HlnIBkSz0TEA:10 X-AUTH: jdh302:2500 Reply-To: From: "Jon Harrop" To: "'Yotam Barnoy'" , "'Goswin von Brederlow'" Cc: "'Ocaml Mailing List'" References: <20140120101654.GI26447@frosties> <08bc01cf17b8$9263d070$b72b7150$@ffconsultancy.com> <20140123092925.GB20624@frosties> <01c401cf1891$b1fb1360$15f13a20$@ffconsultancy.com> <026101cf18dd$756c13d0$60443b70$@ffconsultancy.com> <030501cf1925$45380fa0$cfa82ee0$@ffconsultancy.com> <20140127152944.GA29326@frosties> In-Reply-To: Date: Wed, 29 Jan 2014 08:32:56 -0000 Organization: Flying Frog Consultancy Ltd. Message-ID: <02c001cf1ccc$b635a9b0$22a0fd10$@ffconsultancy.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQHI4li4v5YdVc3QG7JLKEaISEVTZQITm23GAs0uvsEBcUwfGALv8TtSARGMS8wBZ0wNRgGSGZD1Aq5lN6wCA46uAwIAfLE+Ai7eueeZ9bs8YA== Content-Language: en-gb Subject: RE: [Caml-list] How much optimized is the 'a option type ? Yotam wrote: > Of course, once you unbox, all parametric polymorphism is lost Is it? You would have to box the tuple before passing it to a polymorphic function with the type 'a -> 'a. However, if the function has the type 'a * 'b -> 'b * 'a then you could always unbox, right? Cheers, Jon.