Re: PEAR_Callback proposal
| From: | Joshua Eichorn | Date: | Fri, 05 Jan 2007 16:21:35 +0000 |
| Subject: | Re: PEAR_Callback proposal | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-45438@lists.php.net to get a copy of this message | ||
Lukas Feiler wrote:
Hi, Matthias Nothhaft wrote:Indeed, the code was written for a quite specific project of mine. How about slimming down the whole thing by getting rid of all the type checks and signature verification logic. The core thing I'd like to see in PEAR (and could really use for XML_Query2XML) is a Callback class that allows me to define "static" arguments at the time the callback instance is created. Would that reduce the overhead to an acceptable level? I would think the best case would be a design where you could use the lighter weight approach or the more featureful. I haven't looked at the code yet so I don't have any suggestions on how to make that happen but the full feature set does seem useful in certain cases. -joshLukas Feiler wrote:Hi Lukas, in most cases your class is too much overhead just to execute a callback. There are projects with need for speed. ;-) But I could imagine that some people find it useful with special requirements.A couple of days ago I proposed the package PEAR_Callback; see http://pear.php.net/pepr/pepr-proposal-show.php?id=468Hi,