logo
Header graphic 8 of 9

Categories

Archives

Other stuff

Other sites

I wish this site were powered by Django

July 21st, 2008

PHP gains closures

Filed under: PHP, Technology — jm @ 13:23

This PHP RFC contains a proposal for closures, lambda functions and callables in PHP. Looking at the rest of PHP, the syntax seems to be in the same style, with a new reserved word "use".

The RFC has been accepted and the code is in PHP's trunk. Well, it was about time, right?

Of course, PHP will still helpfully truncate your 64-bit database id columns by converting them into floating point numbers, if you're using a PHP version compiled on a 32-bit system, but of course not on a 64-bit system, because it wouldn't be PHP if it behaved the same on two random computers. But now you will be able to do that with real up-to-date, all-the-hype scripting language style in PHP 6.0 ;-).

Comments are closed.