Re: Code References
| From: | Zeev Suraski | Date: | Mon, 19 May 2003 15:09:19 +0000 |
| Subject: | Re: Code References | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-1711@lists.php.net to get a copy of this message | ||
At 16:34 19/05/2003, Sterling Hughes wrote:
On Mon, 2003-05-19 at 10:55, Wez Furlong wrote: use perl; Python, Ruby, LISP, Java, C, whatever, all support this in some form or another (whether it be function pointers or code references.)And so does PHP, through create_function, using PHPish syntax. create_function is not related in any way to call_user_func(), it's fairly fast, and will be faster. I don't see any additional things that are supported by this syntax, other than a tiny performance gain, that comes at the price of significantly reduced functionality (the code cannot contain anything dynamic, whereas with create_function, it can). Zeev