Lukas Feiler wrote:
> Hi,
>
> Matthias Nothhaft wrote:
>
>> Lukas Feiler wrote:
>>
>>> Hi,
>>>
>>> A couple of days ago I proposed the package
PEAR_Callback;
>>> see http://pear.php.net/pepr/pepr-proposal-show.php?id=468
>>>
>>>
>> 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.
>>
>
> 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.
-josh
--
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|