Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53162 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39245 invoked from network); 7 Jun 2011 16:15:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jun 2011 16:15:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=johncrenshaw@priacta.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=johncrenshaw@priacta.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain priacta.com designates 64.95.72.238 as permitted sender) X-PHP-List-Original-Sender: johncrenshaw@priacta.com X-Host-Fingerprint: 64.95.72.238 mx1.myoutlookonline.com Received: from [64.95.72.238] ([64.95.72.238:64710] helo=mx1.myoutlookonline.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CC/A4-15404-6BE4EED4 for ; Tue, 07 Jun 2011 12:15:52 -0400 Received: from st22.mx1.myoutlookonline.com (localhost [127.0.0.1]) by mx1.myoutlookonline.com (Postfix) with ESMTP id 5A1FF78D60C; Tue, 7 Jun 2011 12:15:45 -0400 (EDT) X-Virus-Scanned: by SpamTitan at mail.lan Received: from HUB022.mail.lan (unknown [10.110.2.1]) by mx1.myoutlookonline.com (Postfix) with ESMTP id 6A39C78C57C; Tue, 7 Jun 2011 12:13:29 -0400 (EDT) Received: from MAILR001.mail.lan ([192.168.1.2]) by HUB022.mail.lan ([10.110.17.22]) with mapi; Tue, 7 Jun 2011 12:12:32 -0400 To: Martin Scotta CC: "internals@lists.php.net" Date: Tue, 7 Jun 2011 12:13:19 -0400 Thread-Topic: [PHP-DEV] Implementation help needed: Currying RFC Thread-Index: AcwlJMvBXg+RA2AORxaJ2amKOQZxCgACEGMQ Message-ID: References: <1307443213.1894.848.camel@guybrush> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: RE: [PHP-DEV] Implementation help needed: Currying RFC From: johncrenshaw@priacta.com (John Crenshaw) > Hey John, >=20 > What about writing your curry idea in plain PHP, as a proof of concept. > Then you can show examples live and others can toy with it. >=20 > I'm pretty sure most php developers are not used to curry -- or at least = those who don't have functional programming skills I'll consider this. The basic theory is pretty simple. You need an object t= hat identifies a parameter position, and a short syntax for referencing tha= t object. I think anyone familiar with currying should be able to get the b= asic idea from that, so I don't think this stops the discussion from moving= forward, but if a userland implementation is needed to demonstrate why a p= arser level implementation isn't, I can throw together something basic, or = at least some pseudo-code. John Crenshaw Priacta, Inc.