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 8189C7EEFA for ; Mon, 9 Nov 2015 13:28:21 +0100 (CET) IronPort-PHdr: 9a23:WFO0XRcyCsOTqo+vC1FoXh4qlGMj4u6mDksu8pMizoh2WeGdxc+6Zx7h7PlgxGXEQZ/co6odzbGG7ua8Aidbsd6oizMrTt9lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUiv2OQc9HOnpAIma153xjLDvvcGIKF4YzBOGIppMbzyO5T3LsccXhYYwYo0Q8TDu5kVyRuJN2GlzLkiSlRuvru25/Zpk7jgC86l5r50IeezAcq85Vb1VCig9eyBwvZWz9EqLcQzaz30QSGgfiVJyBBPe5hzgUd+lqCzhreBwwiayONX3CKsrQnKl9ag9DFfjgSIDcjo4633/i8pqjasdrgjyiQZ4xtv9ZIiUMrJQZKLGdtNSEWNFV8dXESJbA5i3b6MLAvoAM+cepI748Qhd5SCiDBWhUbu8ggRDgWX7iOhji7ws Authentication-Results: mail3-smtp-sop.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 (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of alain.frisch@lexifi.com) identity=pra; client-ip=82.138.71.21; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="alain.frisch@lexifi.com"; x-sender="alain.frisch@lexifi.com"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of alain.frisch@lexifi.com) identity=mailfrom; client-ip=82.138.71.21; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="alain.frisch@lexifi.com"; x-sender="alain.frisch@lexifi.com"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mx30.yaziba.net) identity=helo; client-ip=82.138.71.21; receiver=mail3-smtp-sop.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: A0B3AAC5kEBWnBVHilJEGoQObwHAKCGFbwKBODwQAQEBAQEBAQEQAQEBAQEICwkJIS6CLoIIAQEEJxFRCxgJJQ8CRgYBDAgBAYguCTu/NAEBCAIBIIZUhH6ESIRxBZZIhR6ICYFbSYN3gwKTJgI4glKBXnEBhWUBAQE X-IPAS-Result: A0B3AAC5kEBWnBVHilJEGoQObwHAKCGFbwKBODwQAQEBAQEBAQEQAQEBAQEICwkJIS6CLoIIAQEEJxFRCxgJJQ8CRgYBDAgBAYguCTu/NAEBCAIBIIZUhH6ESIRxBZZIhR6ICYFbSYN3gwKTJgI4glKBXnEBhWUBAQE X-IronPort-AV: E=Sophos;i="5.20,265,1444687200"; d="scan'208";a="153202872" Received: from mx30.yaziba.net ([82.138.71.21]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 09 Nov 2015 13:28:20 +0100 Received: from mta10.int.yaziba.net (unknown [217.117.151.14]) by mx30.yaziba.net (mx10.yaziba.net) with ESMTP id 759281A748F; Mon, 9 Nov 2015 13:28:19 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mta10.int.yaziba.net (Postfix) with ESMTP id 81946CA7DB; Mon, 9 Nov 2015 13:28:19 +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 hOULEjrpvLJI; Mon, 9 Nov 2015 13:28:19 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mta10.int.yaziba.net (Postfix) with ESMTP id 5E185CABFA; Mon, 9 Nov 2015 13:28:19 +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 f5B1pMXKje-7; Mon, 9 Nov 2015 13:28:19 +0100 (CET) Received: from [10.0.210.115] (unknown [185.23.92.144]) by mta10.int.yaziba.net (Postfix) with ESMTPSA id 3C996CABF9; Mon, 9 Nov 2015 13:28:19 +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: <56409162.30401@lexifi.com> Date: Mon, 9 Nov 2015 13:28:18 +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: gggruggvucftvghtrhhoucdtuddrfeekhedrfeelgdehkecutefuodetggdotefrucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpjgetkgfkueetnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefuvfhfhffkffgfgggjtgfgsehtjegrtddtfeehnecuhfhrohhmpeetlhgrihhnucfhrhhishgthhcuoegrlhgrihhnrdhfrhhishgthheslhgvgihifhhirdgtohhmqeenucffohhmrghinhepihhnrhhirgdrfhhrnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhht X-VRSPAM-EXTCAUSE: mhhouggvpehsmhhtphhouhht Subject: Re: [Caml-list] Newbie comment on constructor syntax On 09/11/2015 11:35, Andreas Rossberg wrote: > On 11/09/2015 11:16 AM, Alain Frisch wrote: >> On 09/11/2015 09:09, Soegtrop, Michael wrote: >>> The notation looks like tuples, both in definition and use, but it >>> isn't. >> >> The should be not big obstacle to allow using real tuples >> (values/patterns) with multi-argument constructors, thus perhaps >> reducing the confusion. In expression at least, this should be quite >> straightfoward because it can be understood as a local syntactic >> rewriting ("C e" -> "let (x1, ..., xn) = e in C (x1, ..., xn)" when C is >> a constructor with arity > 1 and "e" is not a syntactic tuple). >> >> See: >> http://caml.inria.fr/mantis/view.php?id=6455 > > Yes please, I would appreciate such sugar. I've submitted a quick patch that covers expressions only (not patterns) on the Mantis ticket. I'm not very satisfied with the implementation technique nor the lack of symmetry with patterns, so I won't propose it for inclusion in this form. -- Alain