On Friday 02 November 2001 10:11, Piers Cawley wrote: > [EMAIL PROTECTED] writes: > > There are some, um, forceful recommendations in the 2.0 slashode > > which I quite liked and a few other people didn't :-) > > There were some really fsckwitted premature optimizations in that > document for starters. Deprecating 'my $self = shift;' *still* stands > as my highwater mark for dumbass manoeuvres. All of a sudden you're > stuck doing '$self->SUPER::method(@_[1..$#_])' and other uglinesses...
Not to mention that fact that throwing away my $self = shift is an optimization *if*and*only*if* you never have to @_[1..$#_] later on. Array slicing is a hell of a lot slower than shifting. I did a quite complete set of benchmarks for XML::SAX::Base (when it was still XML::Filter::Base) because most of what it did back then was propagate method calls to another object. I don't have extensive experience with Slash, but having noticed on use.perl that one couldn't use proper XHTML I downloaded it with the intention of offering a small patch, if only so that use.perl could be better. I must say I couldn't for the life of me figure out what it's doing with regards to HTML cleaning. -- _______________________________________________________________________ Robin Berjon <[EMAIL PROTECTED]> -- CTO k n o w s c a p e : // venture knowledge agency www.knowscape.com ----------------------------------------------------------------------- Give a man a fish and he will eat for a day. Teach him how to fish, and he will sit in a boat & drink beer all day.
