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 369E27EEFA for ; Fri, 13 Nov 2015 16:36:19 +0100 (CET) IronPort-PHdr: 9a23:KtMbIhaQmsU/7djJA46P1YH/LSx+4OfEezUN459isYplN5qZpMy4bnLW6fgltlLVR4KTs6sC0LqL9f25EjJcqb+681k8M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aJBzzOEJPK/jvHcaK1oLsh730psSYPVkArQH+SI0xBS3+lR/WuMgSjNkqAYcK4TyNnEF1ff9Lz3hjP1OZkkW0zM6x+Jl+73YY4Kp5pIZoGJ/3dKUgTLFeEC9ucyVsvJWq5lH/Sl6m4nIdVC04iBtTCAiNuBj+V5b39CXgt/F22AGeMN33Q7FyUjOnueMjQxbtjGIDNiUl2GDRkM15yqxB8zy7oBkq+YnRaYCTfNB3ZK/aYJtOX21EV8dXfydbE5ugaJACCfEMe+1fqt+u9BM1sRKiCFz0V6vUwThSiyqzhPVi3g== Authentication-Results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=romain@cryptosense.com; spf=None smtp.mailfrom=romain@cryptosense.com; spf=None smtp.helo=postmaster@6.mo69.mail-out.ovh.net Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of romain@cryptosense.com) identity=pra; client-ip=46.105.50.107; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="romain@cryptosense.com"; x-sender="romain@cryptosense.com"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of romain@cryptosense.com) identity=mailfrom; client-ip=46.105.50.107; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="romain@cryptosense.com"; x-sender="romain@cryptosense.com"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@6.mo69.mail-out.ovh.net) identity=helo; client-ip=46.105.50.107; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="romain@cryptosense.com"; x-sender="postmaster@6.mo69.mail-out.ovh.net"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0B5AAD1AkZWnGsyaS5exTeGEAIIgTM8EAEBAQEBAQEBEAEBAQEBCAsJCSEugi2CCAEBAwEjBBFABgsLGgIFFgsCAgkDAgECAUUGAQwIAogiDAGwSJBXAQshgQGJKIEphFlogjSBRAEElkiOBJtoOII8FgeBV4YuAQEB X-IPAS-Result: A0B5AAD1AkZWnGsyaS5exTeGEAIIgTM8EAEBAQEBAQEBEAEBAQEBCAsJCSEugi2CCAEBAwEjBBFABgsLGgIFFgsCAgkDAgECAUUGAQwIAogiDAGwSJBXAQshgQGJKIEphFlogjSBRAEElkiOBJtoOII8FgeBV4YuAQEB X-IronPort-AV: E=Sophos;i="5.20,287,1444687200"; d="scan'208";a="153744041" Received: from 6.mo69.mail-out.ovh.net ([46.105.50.107]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/ADH-AES256-GCM-SHA384; 13 Nov 2015 16:36:18 +0100 Received: from mail182.ha.ovh.net (gw6.ovh.net [213.251.189.206]) by mo69.mail-out.ovh.net (Postfix) with SMTP id 82FCDFFA4BB for ; Fri, 13 Nov 2015 16:36:17 +0100 (CET) Received: from localhost (HELO queueout) (127.0.0.1) by localhost with SMTP; 13 Nov 2015 17:36:17 +0200 Received: from alille-655-1-132-116.w83-198.abo.wanadoo.fr (HELO ?192.168.1.15?) (romain@bardou.fr@83.198.207.116) by ns0.ovh.net with SMTP; 13 Nov 2015 17:36:10 +0200 To: Alain Frisch , 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> <5640D8E0.6060102@lexifi.com> <5640E2EF.7070400@mpi-sws.org> <0F7D3B1B3C4B894D824F5B822E3E5A172CE3ED02@IRSMSX102.ger.corp.intel.com> <5641C62C.9000606@cryptosense.com> <5641CA8E.4060909@lexifi.com> <5641CD13.1080900@cryptosense.com> From: Romain Bardou Message-ID: <56460366.3040405@cryptosense.com> Date: Fri, 13 Nov 2015 16:36:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.3.0 MIME-Version: 1.0 In-Reply-To: <5641CD13.1080900@cryptosense.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Ovh-Tracer-Id: 246009131099681312 X-Ovh-Remote: 83.198.207.116 (alille-655-1-132-116.w83-198.abo.wanadoo.fr) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-OVH-SPAMSTATE: OK X-OVH-SPAMSCORE: -100 X-OVH-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeekhedrheduucetufdoteggodftvfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeekhedrheduucetufdoteggodftvfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd X-Validation-by: romain@cryptosense.com Subject: Re: [Caml-list] Newbie comment on constructor syntax > That being said it's true that most of the time when I use a constructor > as a function, the constructor has arity 1. In fact, most of the time it > is Some. For the record, I'm writing code right now which contains a rather common example with arity 2: binary operators in an AST. type ast = | Plus of t * t | ... let add_list l = match l with | [] -> ... | hd :: tl -> List.fold_left (fun a b -> Plus (a, b)) hd tl It's not partially applied but it does need to be curried. I'm not saying that it justifies a new syntax in itself :) -- Romain