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 0EC4D7EEFA for ; Mon, 9 Nov 2015 18:33:22 +0100 (CET) IronPort-PHdr: 9a23:FFwyKhIeLOAeb23iyNmcpTZWNBhigK39O0sv0rFitYgVKvnxwZ3uMQTl6Ol3ixeRBMOAu68C17Gd6vi5EUU7or+/81k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i760zceF13FOBZvIaytQ8iJ35nxi7v5osWKKyxzxxODIppKZC2sqgvQssREyaBDEY0WjiXzn31TZu5NznlpL1/A1zz158O34YIxu38I46Fp34d6XK77Z6U1S6BDRHRjajhtpZ6jiR6WZA2D/HYVSS0slQFTCQXf41muRJDqqSH3rOVV3TGbeNbpVvYzQzv0q+9gQRrszSMGLCIR8WfNi8U2grgIjgimoklWx4fVZsm7LvtldaOVKdoeTGtHGMhLVjdKAqu4YpsOAetHNuFd+dqu72ASpAezUFH/TNjkzSVF0zqvhfU3 Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=alain.frisch@lexifi.com; spf=None smtp.mailfrom=alain.frisch@lexifi.com; spf=None smtp.helo=postmaster@mx30.yaziba.net Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of alain.frisch@lexifi.com) identity=pra; client-ip=82.138.71.21; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="alain.frisch@lexifi.com"; x-sender="alain.frisch@lexifi.com"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of alain.frisch@lexifi.com) identity=mailfrom; client-ip=82.138.71.21; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="alain.frisch@lexifi.com"; x-sender="alain.frisch@lexifi.com"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mx30.yaziba.net) identity=helo; client-ip=82.138.71.21; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="alain.frisch@lexifi.com"; x-sender="postmaster@mx30.yaziba.net"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0ByAAAz2EBWnBVHilJehA7BHB2FcwKBQjwQAQEBAQEBAQEQAQEBAQEICwkJIS6CLoIHAQEBAwEnEUAGCwsYCRYPCQMCAQIBRQYBDAgBAYgiDAnBMQEBAQcBAQEBGwSGVIR+iTkFlkiFHogJgVuEQIMCkyYCOIJSgV6GVwEBAQ X-IPAS-Result: A0ByAAAz2EBWnBVHilJehA7BHB2FcwKBQjwQAQEBAQEBAQEQAQEBAQEICwkJIS6CLoIHAQEBAwEnEUAGCwsYCRYPCQMCAQIBRQYBDAgBAYgiDAnBMQEBAQcBAQEBGwSGVIR+iTkFlkiFHogJgVuEQIMCkyYCOIJSgV6GVwEBAQ X-IronPort-AV: E=Sophos;i="5.20,266,1444687200"; d="scan'208";a="186798273" Received: from mx30.yaziba.net ([82.138.71.21]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 09 Nov 2015 18:33:21 +0100 Received: from mta10.int.yaziba.net (unknown [217.117.151.14]) by mx30.yaziba.net (mx10.yaziba.net) with ESMTP id D3CD01A757B; Mon, 9 Nov 2015 18:33:20 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mta10.int.yaziba.net (Postfix) with ESMTP id 056CDCA671; Mon, 9 Nov 2015 18:33:21 +0100 (CET) X-Virus-Scanned: amavisd-new at mta10.int.yaziba.net Received: from mta10.int.yaziba.net ([127.0.0.1]) by localhost (mta10.int.yaziba.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AlhUiYx1cJYW; Mon, 9 Nov 2015 18:33:20 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mta10.int.yaziba.net (Postfix) with ESMTP id D4305CA65C; Mon, 9 Nov 2015 18:33:20 +0100 (CET) X-Virus-Scanned: amavisd-new at mta10.int.yaziba.net Received: from mta10.int.yaziba.net ([127.0.0.1]) by localhost (mta10.int.yaziba.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id QvNZLnq4D8p0; Mon, 9 Nov 2015 18:33:20 +0100 (CET) Received: from [10.0.210.134] (unknown [185.23.92.144]) by mta10.int.yaziba.net (Postfix) with ESMTPSA id B15EACA671; Mon, 9 Nov 2015 18:33:20 +0100 (CET) To: Andreas Rossberg , caml-list@inria.fr References: <0F7D3B1B3C4B894D824F5B822E3E5A172CE3E070@IRSMSX102.ger.corp.intel.com> <87pozk6vjp.fsf@mid.deneb.enyo.de> <0F7D3B1B3C4B894D824F5B822E3E5A172CE3E747@IRSMSX102.ger.corp.intel.com> <56407297.2060309@frisch.fr> <564076EA.7020805@mpi-sws.org> From: Alain Frisch Message-ID: <5640D8E0.6060102@lexifi.com> Date: Mon, 9 Nov 2015 18:33:20 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <564076EA.7020805@mpi-sws.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-DRWEB-SCAN: ok X-VRSPAM-SCORE: -100 X-VRSPAM-STATE: legit X-VRSPAM-CAUSE: gggruggvucftvghtrhhoucdtuddrfeekhedrfeelgdehkecutefuodetggdotefrucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpjgetkgfkueetnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefuvfhfhffkffgfgggjtgfgsehtjegrtddtfeehnecuhfhrohhmpeetlhgrihhnucfhrhhishgthhcuoegrlhgrihhnrdhfrhhishgthheslhgvgihifhhirdgtohhmqeenucffohhmrghinhepghhithhhuhgsrdgtohhmnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhht X-VRSPAM-EXTCAUSE: mhhouggvpehsmhhtphhouhht Subject: Re: [Caml-list] Newbie comment on constructor syntax On 09/11/2015 11:35, Andreas Rossberg wrote: > Yes please, I would appreciate such sugar. I've now submitted a cleaner implementation, working on both expressions and patterns: https://github.com/ocaml/ocaml/pull/284 > Even more I would appreciate > generalising that to allowing constructors to be used as first-class > expressions (i.e., unapplied "C" -> "fun (x1,...,xN) -> C (x1,...,xN)" > when C is a constructor with arity > 0). I had to write some AST mapping > code recently that would have vastly benefited from that. This is not covered (and now, it could simply be "fun x -> C x" :-)). I don't see anything clever to be done on patterns for "unapplied constructors", though. Alain