From: Berend de B. <be...@po...> - 2002-01-05 08:41:15
|
"Franck Arnaud" <fr...@ne...> writes: > > In callback cases the overhead of passing parameters is perhaps less > > than using attributes and just calling plain routines. > > Shouldn't really be a major concern either way. Yes, I'm really not sure. But I also like a less cluttered class, because if you override things you have to take a lot of parameters with you. It was just an idea. But if you switch through several layers, it might pay off, especially if we can save the state in a special class that just every other class has a reference too: no copying in this case, no parameter passing either. And the ability to have the attributes available in on_content and on_end calls (for the same tag). > > perhaps, make it possible to change/tweak state more easily than > > adding an additional parameter, which requires all people to change > > their source. > > Good argument, but it's at the cost of weaker static type > checking (acceptable to me, but we're losing something). True. But I hope the benefits outweigh the costs. -- Groetjes, Berend. (-: |