Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: A Perl Version of Java's import

by Ovid (Cardinal)
on Aug 07, 2007 at 10:32 UTC ( #631005=note: print w/ replies, xml ) Need Help??


in reply to Re: A Perl Version of Java's import
in thread A Perl Version of Java's import

Java deals with this by refusing to import any classes which conflict with other classes. Perl's dynamic nature makes this rather difficult to guarantee. This is particularly troublesome because authors might dynamically build a class at runtime, populate the namespace but not add an entry to %INC, thus causing mysterious bugs when only an %INC entry is relied upon when you actually need to check for the existence of a given namespace.

I can work around some of this, but some of it would be in the hands of a programmer to be careful. I think this is the biggest drawback to this module. However, the question is whether or not this will prove to be a prevalent problem in practice, as opposed to theory. I've seen people refuse to use code whose philosophy they theoretically disagree with even when the reality is far less problematic than it's made out to be.

Cheers,
Ovid

New address of my CGI Course.


Comment on Re^2: A Perl Version of Java's import

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://631005]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2014-11-26 00:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (160 votes), past polls