Re: Murdering @ISA considered cruel and unusual
Simon Cozens [EMAIL PROTECTED] writes: On Thu, Sep 28, 2000 at 02:40:04PM -0400, John Porter wrote: Tom Christiansen wrote: Perl's use of @ISA is beautiful. use base is, or can be, pretty silly -- think pseudohashes, just for one. I suppose you diddle @INC directly, Tom, instead of use'ing lib? I call "non sequitur"! I like pizza. -- Piers
Re: Murdering @ISA considered cruel and unusual
Tom Christiansen [EMAIL PROTECTED] writes: I strongly agree with the opinion that we should try and get away from special variables and switches in favor of functions and pragmas. Witness 'use base' instead of '@ISA', 'use warnings', and so on. Huh? Why??? Perl's use of @ISA is beautiful. It's an example of code reuse, because we don't need no stinking syntax! Indeed. Clear, simple, works. And if you're that way inclined lets you do all sorts of weird shit. I say keep it. use base is, or can be, pretty silly -- think pseudohashes, just for one. Cuse base has the potential to be very nice indeed. Preferably after pseudo hashes have been excised from the language. It happens at compile time. You can enforce various levels of stricture through it, which can potentially make it easier for the compiler to optimize stuff. It's vaguely necessary if you're going to have interfaces and all that (at least, the compile time behaviour is). I say keep it. Neither of these methods is the One True Way. They are both very useful in their place. Deciding where those places are is left as an exercise for the interested programmer. -- piers
Re: Murdering @ISA considered cruel and unusual
Piers Cawley wrote: I strongly agree with the opinion that we should try and get away from special variables and switches in favor of functions and pragmas. Witness 'use base' instead of '@ISA', 'use warnings', and so on. Huh? Why??? Perl's use of @ISA is beautiful. It's an example of code reuse, because we don't need no stinking syntax! Indeed. Clear, simple, works. And if you're that way inclined lets you do all sorts of weird shit. I say keep it. I *do* agree with keeping @ISA, actually. :-) My message was spawned by a message of Ilya's proposing that we slash and burn everything except a very few variables. I actually said that this was a fragile approach. But I do agree new variables should be avoided where possible. Shit, 90% of my modules would break, including Class::Handler, which I particularly like (and there's no way around @ISA with 'use base', since it works at runtime). -Nate
Re: Murdering @ISA considered cruel and unusual
Tom Christiansen wrote: Perl's use of @ISA is beautiful. use base is, or can be, pretty silly -- think pseudohashes, just for one. I suppose you diddle @INC directly, Tom, instead of use'ing lib? -- John Porter
Re: Murdering @ISA considered cruel and unusual
On Thu, Sep 28, 2000 at 02:40:04PM -0400, John Porter wrote: Tom Christiansen wrote: Perl's use of @ISA is beautiful. use base is, or can be, pretty silly -- think pseudohashes, just for one. I suppose you diddle @INC directly, Tom, instead of use'ing lib? I call "non sequitur"! -- People in a Position to Know, Inc.