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 0EB447FD3B for ; Sat, 21 Nov 2015 18:24:05 +0100 (CET) IronPort-PHdr: 9a23:0BQM/Bd3uISKUxgqacm7W6TulGMj4u6mDksu8pMizoh2WeGdxc65bR7h7PlgxGXEQZ/co6odzbGG7ua+Bidfv96oizMrTt9lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUiv2OQc9HOnpAIma153xjLDvvcOMKFoWzBOGIppMbzyO5T3LsccXhYYwYo0Q8TDu5kVyRuJN2GlzLkiSlRuvru25/Zpk7jgC86l5r50IAu3GePEzRLlcSTAnKHwd5cvxtBCFQxHcyGEbVzA2nxxEGQnGpDv9WZK55iv3sOZn2SqyIcruSrFyQTOl9uFgTxq+23RPDCIw7GyC0p84t6lcuh/0/xE= Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=hendrik@topoi.pooq.com; spf=None smtp.mailfrom=hendrik@topoi.pooq.com; spf=None smtp.helo=postmaster@april.topoi.pooq.com Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of hendrik@topoi.pooq.com) identity=pra; client-ip=69.165.131.134; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="hendrik@topoi.pooq.com"; x-sender="hendrik@topoi.pooq.com"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of hendrik@topoi.pooq.com) identity=mailfrom; client-ip=69.165.131.134; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="hendrik@topoi.pooq.com"; x-sender="hendrik@topoi.pooq.com"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@april.topoi.pooq.com) identity=helo; client-ip=69.165.131.134; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="hendrik@topoi.pooq.com"; x-sender="postmaster@april.topoi.pooq.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0DpBgBnp1BW/4aDpUVehFcBwSmGDwKBahEBAQEBAQEBAYEJgi2CCAEBBDpPIwklDwUYiHK/YQEBCAIhkHmCfYEVBY4UiDyBAIwoCV2bbjcshCIghV8BAQE X-IPAS-Result: A0DpBgBnp1BW/4aDpUVehFcBwSmGDwKBahEBAQEBAQEBAYEJgi2CCAEBBDpPIwklDwUYiHK/YQEBCAIhkHmCfYEVBY4UiDyBAIwoCV2bbjcshCIghV8BAQE X-IronPort-AV: E=Sophos;i="5.20,328,1444687200"; d="scan'208";a="188535899" Received: from topoi.pooq.com (HELO april.topoi.pooq.com) ([69.165.131.134]) by mail2-smtp-roc.national.inria.fr with ESMTP; 21 Nov 2015 18:24:03 +0100 Received: by april.topoi.pooq.com (Postfix, from userid 1001) id A32611A0340; Sat, 21 Nov 2015 12:24:01 -0500 (EST) Date: Sat, 21 Nov 2015 12:24:01 -0500 From: Hendrik Boom To: caml-list@inria.fr Message-ID: <20151121172401.GA31756@topoi.pooq.com> References: <0F7D3B1B3C4B894D824F5B822E3E5A172CE3E070@IRSMSX102.ger.corp.intel.com> <563C816B.7020604@inria.fr> <0F7D3B1B3C4B894D824F5B822E3E5A172CE3E0E1@IRSMSX102.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Subject: [Caml-list] Notation for currying On Fri, Nov 06, 2015 at 01:34:11PM +0100, Gabriel Scherer wrote: > > I personally believe that currified constructor syntax would be a better > choice, and that using non-currified constructors is a historical mistake > of SML/Caml. But I am also not convinced that efforts to change it today > are worth the trouble, and prefer to concentrate on improving other parts > of the OCaml ecosystem. Perhaps there should be explicit syntax for currying, such as f a b _ instead of f a b That would permit currying in other argument positions: f a _ c though I suspect _ may be the wrong symbol for the current language, and I also suspect it's far too late tointroduce it in the current language. I have noticed that almost a the situations where the compiler thinks I mean to curry I actually just left out a parameter by mistake. The type inferences it makes based on these errors usually occur elsewhere and are truly mystifying. -- hendrik