Timothy Boronczyk's Blog: Currying in PHP

Courtesy PHPDeveloper.org  Fri, 07/10/2009 - 12:33

Timothy Boronczyk has posted about an interesting concept you could use in your applications - currying (made possible in PHP 5.3.x and above):

What happens if you don't have all the arguments handy for a function, but you want to give whatever arguments you do have now and then provide the rest of them to the function later?

This is called currying , and is a core concept in functional programming.

It's messy, but possible to...


 

More related items

PHPClasses.org: Another Serious Security Bug on PHP...
On the PHPClasses.org blog there's a new post detailing an issue that came up in the PHP 5.3.9 release that caused a large security issue (PHP 5.3.10 has, however, already been released to...

Etsy Code as Craft: Rasmus Lerdorf - PHP in 2012
In case you weren't able to make it (or missed the live stream) Rasmus Lerdorf gave a presentation last night at Etsy as a part of their "Code as Craft" series. They recorded the session and...

PHP OCI8 1.4.7 is available on PECL - Christopher...
Following on the heels of the PHP 5.3.9 release, I've bundled OCI8 1.4.7 for PECL. The PECL OCI8 1.4.7 code is the same as included in PHP 5.3.9. The release notes are here. There are several...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com