J
J. Romano
Greetings!
After doing some work with Object-Oriented Perl (and helping a
friend learn it, as well), we both agree that the Data:umper module
is a valuable tool for debugging OO Perl programs, as it lets us
easily see the structure and contents of complex objects (which is
something I wish more OO languages had readily available).
Now, OO Perl has had its critics, most of which are quick to say
that OO Perl is messy and doesn't enforce private data very well.
However, some do admit that this makes OO Perl quite flexible -- for
instance, a Perl object can be easily examined with the Data:umper
module as a result of its laid-back policy on information hiding.
Now to my question: Knowing that Perl 6 will have better OO
handling, does that mean that Data:umper will lose its usefulness on
Perl 6 objects? Or will it still be able to let a programmer peer
into them and let him/her tinker with their data using the debugger?
I'm hoping for the latter case, even though that case is sure not
to eliminate all of Perl's OO criticisms that gripe about the lack of
information hiding.
-- Jean-Luc
After doing some work with Object-Oriented Perl (and helping a
friend learn it, as well), we both agree that the Data:umper module
is a valuable tool for debugging OO Perl programs, as it lets us
easily see the structure and contents of complex objects (which is
something I wish more OO languages had readily available).
Now, OO Perl has had its critics, most of which are quick to say
that OO Perl is messy and doesn't enforce private data very well.
However, some do admit that this makes OO Perl quite flexible -- for
instance, a Perl object can be easily examined with the Data:umper
module as a result of its laid-back policy on information hiding.
Now to my question: Knowing that Perl 6 will have better OO
handling, does that mean that Data:umper will lose its usefulness on
Perl 6 objects? Or will it still be able to let a programmer peer
into them and let him/her tinker with their data using the debugger?
I'm hoping for the latter case, even though that case is sure not
to eliminate all of Perl's OO criticisms that gripe about the lack of
information hiding.
-- Jean-Luc