Re: Stringification of references and objects.

[email protected] (Dan Sugalski) Fri, 6 Dec 2002 10:40:18 -0500
Newsgroups perl.perl6.language,perl.perl6.documentation
Message-ID <a05200f02ba167532ae4a@[63.120.19.221]>
At 6:36 PM -0500 12/5/02, Joseph F. Ryan wrote:
>By default, references should not stringify to anything "pretty", they
>should stringifiy to something useful for debugging.  Heck, even perl5
>style should be fine.  Not only is this handy, but also prevents
>problems with circular referencing data structures, huge data
>structures, etc.  However, all built-in types should have a .repr()
>method, which should provide primitive Data::Dumper-ish output

If an aggregate and a reference to an aggregate are going to behave 
the same, which is what Larry's indicated in the past, then 
stringifying a reference should be the same as stringifying its 
referent.
-- 
                                         Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[email protected]                         have teddy bears and even
                                       teddy bears get drunk