Larry Wall <[EMAIL PROTECTED]> writes:

> On Thu, Nov 21, 2002 at 12:27:01PM -0500, Joseph F. Ryan wrote:
> : So how should this behave:
> : 
> : print "$('one','two','three')"
>
> Probably prints "['one','two','three']" or whatever an array ref
> stringifies to by default in Perl 6.  It's certainly not going to do
> what Perl 5 does with a reference, which is next to useless.

Please make the default behaviour 'debugging friendly' rather than
'pretty' if that makes any sense at all. In other words, it'd be handy
if whatever got printed out included some unique ID for the scalar so,
when I'm sticking debugging print statements into code I can tell at a
glance whether [ 'one', 'two', 'three' ] and [ 'one', 'two', 'three' ]
are the same thing or simply two arrayrefs that *look* the same. How
about something like 'Array(<id>)[...]'? Verbose admittedly, but
useful.

-- 
Piers

   "It is a truth universally acknowledged that a language in
    possession of a rich syntax must be in need of a rewrite."
         -- Jane Austen?

Reply via email to