On Mon, Aug 07, 2000 at 03:00:13PM -0400, Barrie Slaymaker wrote:
> One thing I've found useful in XML::Parser is the ability to
> change handlers mid-stream.  But not that often, I guess.

Ohh - you could change the handlers mid-stream thru the
registration mechanism no problem. You just can't change your
class (re-bless yourself) at runtime :-)

> I was going to ask you to send it to me, along with what you didn't
> like about the API, after your message of Friday, but I'm tuit-starved
> at the moment.

What I disliked about it was the interface was too complex and
too overloaded with features. I think I allowed you to register
a callback under a name with an optional expr to eval for truthhood,
plus you could chain callbacks to gether in any order you wanted
(even depending upon the result of the previous callback in the chain).

Very capable, but more than what was needed IMHO and not very
speedy at all. I was thinking the real thing would maybe just
accept a callback based on cmd-name and type (=xxx vs X<...>)
with the possible exception of a special callback for any
paragraph (e.g. '*'). And no fancy chaining (you can do it
yourself with your lone callback per command if you like).

-- 
Brad Appleton <[EMAIL PROTECTED]>  http://www.bradapp.net/
  "And miles to go before I sleep." -- Robert Frost

Reply via email to