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 5C1927EE79 for ; Mon, 16 May 2016 20:49:44 +0200 (CEST) IronPort-PHdr: 9a23:XYtLfhSC1bxf32+LJ1bxEFIH8dpsv+yvbD5Q0YIujvd0So/mwa64bBeN2/xhgRfzUJnB7Loc0qyN4/GmAzJLuMzd+Fk5M7VyFDY9wf0MmAIhBMPXQWbaF9XNKxIAIcJZSVV+9Gu6O0UGUOz3ZlnVv2HgpWVKQka3CwN5K6zPF5LIiIzvjqbpq8yVOVsD3WDhKZpJbzyI7izp/vEMhoVjLqtjgjDomVBvP9ps+GVzOFiIlAz97MrjtLRq8iBXpu5zv5UYCfayV+0CQLdZFDUrNXwurI2u7EGbDFjH2nxJfWgMnlJzHw/B9BTzWJG55ir8uO1V1ySAMYjtUbcwQTGr6aEtRBK+2wkdMDtswWbLg8k4pqtBphWw70huxJLdZYucLvx5b4vSeNobQSxKWcMHBH8JOZ+1c4ZaV7lJBu1ftYSo4gJW9RY= Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=yotambarnoy@gmail.com; spf=Pass smtp.mailfrom=yotambarnoy@gmail.com; spf=None smtp.helo=postmaster@mail-yw0-f174.google.com Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of yotambarnoy@gmail.com) identity=pra; client-ip=209.85.161.174; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="yotambarnoy@gmail.com"; x-sender="yotambarnoy@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of yotambarnoy@gmail.com designates 209.85.161.174 as permitted sender) identity=mailfrom; client-ip=209.85.161.174; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="yotambarnoy@gmail.com"; x-sender="yotambarnoy@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-yw0-f174.google.com) identity=helo; client-ip=209.85.161.174; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="yotambarnoy@gmail.com"; x-sender="postmaster@mail-yw0-f174.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0DPAQAgFTpXj66hVdFdg1U3fgauXIsZgXYkhW0CgScHOhIBAQEBAQEBAREBAQEBBwsLCSEvgi2CFgEBAwESEQQZARQHDw4BAwELBgMCBAcDNAICIgERAQUBHAYTCRmHcgEDDwgOkhOPQoExPjGLO4FqglgFh1cKGScNUoNVAQEBAQEBAQEBAQEBAQEBAQEBARYCBhCGFYRNhEshglOCWQWHfpAphX6GKoF2jxmOAxIegQ4nC4IpHoFxIDIBiAUBAQE X-IPAS-Result: A0DPAQAgFTpXj66hVdFdg1U3fgauXIsZgXYkhW0CgScHOhIBAQEBAQEBAREBAQEBBwsLCSEvgi2CFgEBAwESEQQZARQHDw4BAwELBgMCBAcDNAICIgERAQUBHAYTCRmHcgEDDwgOkhOPQoExPjGLO4FqglgFh1cKGScNUoNVAQEBAQEBAQEBAQEBAQEBAQEBARYCBhCGFYRNhEshglOCWQWHfpAphX6GKoF2jxmOAxIegQ4nC4IpHoFxIDIBiAUBAQE X-IronPort-AV: E=Sophos;i="5.26,627,1459807200"; d="scan'208,217";a="218444695" Received: from mail-yw0-f174.google.com ([209.85.161.174]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 16 May 2016 20:49:43 +0200 Received: by mail-yw0-f174.google.com with SMTP id x189so19951538ywe.3 for ; Mon, 16 May 2016 11:49:43 -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; bh=QYUwBJ4AiIV3O0D8pCNtiyt59YcIWiQGxaf6P0/UQts=; b=wZk9WUg+pLRd8Exb2EKmvoGfkI2Jb3IH8oowOZbHyfidBgnSZ3U5hNyvFWhKA5hLiO 2xDLHLEJNQlX9udmuGu5O+NnSMBWU1hZL7nv2xLr1XqcF9d3FAocTLLvG5hCdt2nGj3k 7mNqDtrw2rtXeePaE2tyXYng6YEmeTxBlbj3JoUiyDdPi0ws3e6EjUzkVpnrTN6T5DNP iMzZQHlz60UGEv3UyGqp/8cw9wrtyJGGzYf2Bw+UErQUgSz1nB6cX4L6PFxrUy8zazsv UUwPiqK3hxdsbsX0Me0mcZ59jq2tAKcjVyq0j+DvmrAG/qjHps4ssNSqwOjDIRDycUbu VgeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=QYUwBJ4AiIV3O0D8pCNtiyt59YcIWiQGxaf6P0/UQts=; b=Jh0Wiqe9JwyDBEWeT/PWQe6MNu8p9Ys/zK+kiS7lwu8Uy6MVTTdSgKVduKjaIJ7XNt tLLCkPiQzFJiDtj9LkezqawcV3nbw7UuBIv0YGAPBxm8HRxrXO70QJmGYk6yfzi3gaxy uBLOG4hYXM+I8mww4O02Vn8a2YklvHAHg+ArNzObBAt084B4DFXaJ7qikfPC5FOdHV1p KSdYfMC9gOkS6e6/EXMmpNIClpKW5ZImS6+r9DdCM8InnzYnh2PCrTsMrnBmpzbIBx5g wgMX1ptZnSFs/zAsar1vRDImZtP9uZBVhh2jUrSqV/XoS+SN8BDlC6R9QXefqRArVFik Ce8Q== X-Gm-Message-State: AOPr4FX849xy61iD4Kd4BebcGCEseViNtaXobyr8hpHRGccFvcczIEY4cHRotmjClJCHug/TBlHFRYXbqFRRWw== X-Received: by 10.129.122.207 with SMTP id v198mr15148107ywc.82.1463424582266; Mon, 16 May 2016 11:49:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.209.143 with HTTP; Mon, 16 May 2016 11:49:22 -0700 (PDT) In-Reply-To: <1463419945.3467.32.camel@e130.lan.sumadev.de> References: <1463412482-sup-8520@hennequin-xps> <1463417600-sup-2106@hennequin-xps> <1463419945.3467.32.camel@e130.lan.sumadev.de> From: Yotam Barnoy Date: Mon, 16 May 2016 14:49:22 -0400 Message-ID: To: Gerd Stolpmann Cc: Guillaume Hennequin , caml users Content-Type: multipart/alternative; boundary=94eb2c0b176a61b5800532fa16f8 Subject: Re: [Caml-list] issue with polymorphism --94eb2c0b176a61b5800532fa16f8 Content-Type: text/plain; charset=UTF-8 Paging the type experts -- is there a concrete reason why we disallow writing this type directly? On Mon, May 16, 2016 at 1:32 PM, Gerd Stolpmann wrote: > Am Montag, den 16.05.2016, 17:55 +0100 schrieb Guillaume Hennequin: > > Thanks all for your prompt answers; > > > > > See the FAQ entry, "How to write a function with polymorphic > arguments?" > > > > https://ocaml.org/learn/faq.html#Howtowriteafunctionwithpolymorphicarguments > > > > this page explains how to do it with records or objects, but ends with a > > mysterious "FIXME: a direct way now exists". Does anyone know what this > might > > refer to? > > What you would need is > > let print_both : ('a . 'a -> 'a) -> unit = ... > > i.e. the scope of the quantifier is restricted to the first argument. > This doesn't exist to my knowledge. Maybe it was part of some dev > version? > > Gerd > -- > ------------------------------------------------------------ > Gerd Stolpmann, Darmstadt, Germany gerd@gerd-stolpmann.de > My OCaml site: http://www.camlcity.org > Contact details: http://www.camlcity.org/contact.html > Company homepage: http://www.gerd-stolpmann.de > ------------------------------------------------------------ > > --94eb2c0b176a61b5800532fa16f8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Paging the type experts -- is there a concrete reason why = we disallow writing this type directly?
--94eb2c0b176a61b5800532fa16f8--