220 36511 <CAC+0CCMtAos5KpLmvDAkxCNfBFJQQqKrTZh7jfhv6vCKKFbtJw@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Jake Arkinstall <jake.arkinstall@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Currying or Partial Application
Date: Sat, 6 Jan 2018 16:19:03 +0000
Lines: 64
Approved: news@gmane.org
Message-ID: <CAC+0CCMtAos5KpLmvDAkxCNfBFJQQqKrTZh7jfhv6vCKKFbtJw@mail.gmail.com>
References: <835cc86a-2e6c-4e17-aec7-4f16cf8b085f@isocpp.org> <7A4EE214-FE5B-4EC2-BE9E-23522F55EE5B@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="001a1140ab1a6d578805621decb4"
X-Trace: blaine.gmane.org 1515255427 9402 195.159.176.226 (6 Jan 2018 16:17:07 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sat, 6 Jan 2018 16:17:07 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDCZX3WUUQFRB6HNYPJAKGQESV5HL2Y@isocpp.org Sat Jan 06 17:17:03 2018
Return-path: <std-proposals+bncBDCZX3WUUQFRB6HNYPJAKGQESV5HL2Y@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ot0-f200.google.com ([74.125.82.200])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDCZX3WUUQFRB6HNYPJAKGQESV5HL2Y@isocpp.org>)
	id 1eXr9Z-00023x-T5
	for gclcip-std-proposals@m.gmane.org; Sat, 06 Jan 2018 17:17:02 +0100
Original-Received: by mail-ot0-f200.google.com with SMTP id m43sf3936856otb.7
        for <gclcip-std-proposals@m.gmane.org>; Sat, 06 Jan 2018 08:19:05 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1515255545; cv=pass;
        d=google.com; s=arc-20160816;
        b=H9wh3CruwGFzDFN03hhE+ajzG+o687MhXiZ7xaCb7kG99UkKlMEgzBeUSsrNfPYx0L
         PzQeoxb/TBXH5z8QGy2PGkjmISoQ41IYJGaqZBpgfHuSc/LbL9AJJML8/kSG7sif2psG
         mtbiV+RDAk6kftTGKMmhla5i+AZW6FKtvlDuRpVsFTYgwKXaI90rm+m4ulOBjTJ6DTPj
         nkFtX2op3TVyk4SkXYVgx+NvhHByY29k8frfmiygFIlnmxhouUnSAc4VKVhDA9SP9kgT
         xPJX9DcWZLn/oLngyghiRkTIwaKRKp/wQoVH0nbxJj3BWz7sHE3RXx22QEK29w1FwuFm
         KyxA==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date
         :from:references:in-reply-to:mime-version:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=i41h1ME0a1v2pWFoJV9YKKt2ysEaVL5o9ZwFzah3stg=;
        b=f1syYlVnlTC9NFgPPa9Qz+y79CtTC63quzqRsB3xPZ1Dn2UKGMatibJUL14sSQNGkl
         mU6zPmA7FZrjMlX+cps3mZSdOGmMWnXMBIOpc7cl3gq3DvLOYgzJYB1ptrR+3mKItcao
         qK3yT6uTXBDMnC7vBOtvS8E/U4JtxaVAfzW0uGlIKwufSav0zDdEhTQqQjlzYyOfKh7u
         L5bTZMOH3649+dA1FmvE/uEnDQRTV/DLaV8cbo3q6zUGAmp5OdjuCSdeMTzhzEUMTQRJ
         2mlb8lQ9Gyy33GyuyS/YZgBAN8HymJMkyH3XDSwl4t7xJaOLx3Zj2owmIBegciOQnvGz
         ZLSA==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=OWlUBQ1r;
       spf=pass (google.com: domain of jake.arkinstall@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jake.arkinstall@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=i41h1ME0a1v2pWFoJV9YKKt2ysEaVL5o9ZwFzah3stg=;
        b=S2ET+UMweYISgBWykoYoNG0RwFZotGDdE9VmEItXV19MAxWfxulix4s5BKefEN7Kfr
         DC3So5VJLo8Ntms7uNIK9LvO62X+h+8oh1up4gkNaJA7FbYofJbXJ1nKChsFBxdDVNVC
         sdgVUTB8jfzF7tNRgyzCCwjsOpNQ4s2KG6HnSFQuMqych1EF2JvybwiHax1ahbQwMyym
         5YytfkszEIybdYQeNmczZyG50xJbe0RPZTnEq1F4Rui7p52iQFj8IFFrdRBil9iF7sWe
         ALIQuJ7YaoAg57HRggb+E5aIEaa8YWVQ3d7jzHGfBpb0pZcmt6iqxPzOFxY09AssVHub
         fdxg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:in-reply-to:references:from:date
         :message-id:subject:to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=i41h1ME0a1v2pWFoJV9YKKt2ysEaVL5o9ZwFzah3stg=;
        b=Yt6Sa1RNvwQmA5D67WTDXX+ZGG2tBCSML5kWADtOCS5bYwlWh3dqrQ5wZ0RceKDweh
         k8wPaxYiz2felUoE212DrffvNdERnFVUtuitIZ++mCW37SQaiUx5rdhIPyDZ9mdpc64W
         6h0GTh4i0+NBTlBgjII5bNjfA0LRtMl2/JepQJfbf6Q0P38aMZpf7h2GCTv3FAVkkyPM
         8ICfXHVRmlt8cL/KVLTh4gfM3snJR1VYT8dvXL0XDYmwkvpYfrLhFBVT6Aub5FK2J1c6
         J6vJlcgh5fWAHoK2Rb3A7iEkdFKDQA6vgo7Ep+fwX/aqXqWit2agQ+rEDNR97RLP0iLK
         Ncbw==
X-Gm-Message-State: AKwxytfvqMcKjxLgpA5PjNX0aEqaKoTVOX5IClYr+BR70OQPgjkzg9Eg
	mvGbjiufqEEdAasAYV4ZPQBr/A==
X-Google-Smtp-Source: ACJfBotuOJmm33pBDmEUV52y+rS45qrIvY14aHMPuwitPb47M5xNuA1H3IGPbBDVdDhlDLMM54/IgA==
X-Received: by 10.157.59.100 with SMTP id z91mr3211903otb.114.1515255545118;
        Sat, 06 Jan 2018 08:19:05 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.85.10 with SMTP id l10ls1772723oth.8.gmail; Sat, 06 Jan
 2018 08:19:04 -0800 (PST)
X-Received: by 10.157.4.34 with SMTP id 31mr3569190otc.199.1515255544135;
        Sat, 06 Jan 2018 08:19:04 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1515255544; cv=none;
        d=google.com; s=arc-20160816;
        b=xNn9bDvVweH0jRi5UynfghQnzb14ZLUp1CodKk8HeCMXLTYedBD5rNLeUVAmdOtjin
         pU879HauL/Qpi/DKvVyfMSnJrvbUClKmqGpYVmfIAewuBQZbdRyuUpz2AsHs+BxfBcKf
         hpMSLr68lYZumIq8kL4aH+Yid/RGayRNb5ZJm4pcu/7gjDZA0zGgvmpDR3HvY3eviCvw
         wG3f44Ykw8pLXmplK89m26xifiWiWfPwESk+SiCeHPIVgzB30QF6EsZQXV+m2h91qMiQ
         uge52vpORkY8PjE3EIsfkDEJ6V36QnPUOj3mXDJrkB7e38/UcmxNPKrB6B1fo4sAclhu
         erVg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:subject:message-id:date:from:references:in-reply-to:mime-version
         :dkim-signature:arc-authentication-results;
        bh=3SXxnf1oEyM0eaSAIsN4uADPZYPP8Wn8Yfh+vb06PrY=;
        b=qr9QjCgl2cOZlgR5O8/RLkVWzARG1zc9AD0lbRKjgkzq/iMoKnMEeAbs+8Hcrw9DCi
         39fo+bTxi+n0axc28VoPXiWRvBRdF7N/TxI8P2rR6wQtxd3HyroratJMitrHUReZRPxi
         DXE2YI/zI+O36TjWkwPrCmT8fElYi7oxslvz+PAVohFTAHLxBjjo/dx7E3t4MJvmxFhm
         mEiX9zH+/O+w5A6aR3oFtWiJXe7FwdbQWxuHQ+eHGrWHF+6UpJTcPzH9hk0XzvSscF6z
         NyiQ5lEtjpc8GOlPN3un5JjZToDqEoftSYD4O7uiDXR1mdJY70OQ3JB5IROaVLNUsRi3
         PYSg==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=OWlUBQ1r;
       spf=pass (google.com: domain of jake.arkinstall@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jake.arkinstall@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Original-Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41])
        by mx.google.com with SMTPS id j81sor2707549oih.116.2018.01.06.08.19.04
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Sat, 06 Jan 2018 08:19:04 -0800 (PST)
Received-SPF: pass (google.com: domain of jake.arkinstall@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 10.202.104.229 with SMTP id o98mr3702349oik.137.1515255543714;
 Sat, 06 Jan 2018 08:19:03 -0800 (PST)
Original-Received: by 10.168.69.140 with HTTP; Sat, 6 Jan 2018 08:19:03 -0800 (PST)
In-Reply-To: <7A4EE214-FE5B-4EC2-BE9E-23522F55EE5B@gmail.com>
X-Original-Sender: jake.arkinstall@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=OWlUBQ1r;       spf=pass
 (google.com: domain of jake.arkinstall@gmail.com designates 209.85.220.41 as
 permitted sender) smtp.mailfrom=jake.arkinstall@gmail.com;       dmarc=pass
 (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: std-proposals@isocpp.org
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:36511
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/36511>

--001a1140ab1a6d578805621decb4
Content-Type: text/plain; charset="UTF-8"

On Sat, Jan 6, 2018 at 3:13 PM, Jonathan Coe <jonathanbcoe@gmail.com> wrote:

> Do you have an example of how this would allow one to re-write code in a *more
> maintainable way*?
>

I just realised my example doesn't fit your request for maintainability.
From my experience with Haskell, I can say that it often makes code highly
*reusable*, and there are a lot of very flexible Haskell libraries that are
only a few dozen lines long due to this. Once a handful of basic functions
are in place, they can be used and abused in an incredible variety of ways,
and you don't need to think twice about doing so. A lot of this (not all,
but a lot) is due to partial application and parameter flipping.

So in terms of *reusability,* maintainability can be improved.

-- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAC%2B0CCMtAos5KpLmvDAkxCNfBFJQQqKrTZh7jfhv6vCKKFbtJw%40mail.gmail.com.

--001a1140ab1a6d578805621decb4
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On S=
at, Jan 6, 2018 at 3:13 PM, Jonathan Coe <span dir=3D"ltr">&lt;<a href=3D"m=
ailto:jonathanbcoe@gmail.com" target=3D"_blank">jonathanbcoe@gmail.com</a>&=
gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 =
0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"auto"><span=
 class=3D""><div></div><div>Do you have an example of how this would allow =
one to re-write code in a <i>more maintainable way</i>?</div></span></div><=
/blockquote><div><br>I just realised my example doesn&#39;t fit your reques=
t for maintainability. From my experience with Haskell, I can say that it o=
ften makes code highly <i>reusable</i>, and there are a lot of very flexibl=
e Haskell libraries that are only a few dozen lines long due to this. Once =
a handful of basic functions are in place, they can be used and abused in a=
n incredible variety of ways, and you don&#39;t need to think twice about d=
oing so. A lot of this (not all, but a lot) is due to partial application a=
nd parameter flipping.<br><br>So in terms of <i>reusability,</i>=C2=A0maint=
ainability can be improved.</div></div></div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/CAC%2B0CCMtAos5KpLmvDAkxCNfBFJQQqKrTZ=
h7jfhv6vCKKFbtJw%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">h=
ttps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAC%2B0CCMtAos5=
KpLmvDAkxCNfBFJQQqKrTZh7jfhv6vCKKFbtJw%40mail.gmail.com</a>.<br />

--001a1140ab1a6d578805621decb4--

.
