Re: Murdering @ISA considered cruel and unusual

2000-09-29 Thread Piers Cawley

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




Murdering @ISA considered cruel and unusual

2000-09-28 Thread Tom Christiansen

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!

use base is, or can be, pretty silly -- think pseudohashes, 
just for one.

The general sentiment you espouse obviously has a line beyond
which you don't intend to cross.   The question is where
that line lies.

--tom, who knows that it's hard to read his mail, but it's
   even harder to write it

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.




Re: Murdering @ISA considered cruel and unusual

2000-09-28 Thread Piers Cawley

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

2000-09-28 Thread Nathan Wiger

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

2000-09-28 Thread John Porter

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

2000-09-28 Thread Simon Cozens

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.