develooper Front page | perl.perl5.porters | Postings from February 2008

Re: a warning I'd like to see

Thread Previous | Thread Next
From:
demerphq
Date:
February 18, 2008 06:39
Subject:
Re: a warning I'd like to see
Message ID:
9b18b3110802180633s49f564abm4b38a5b9dd8627e7@mail.gmail.com
On 18/02/2008, Mark Jason Dominus <mjd@plover.com> wrote:
> Yves Orton:
> > ST is one place where we could really use python style tuples.
>
> I've always been really glad Perl didn't have Python-style tuples.
> They're a great example of an implementation detail that unnecessarily
> leaks out to user space.
>
> > It is slowed down quite a bit by the construction cost of
> > manufacturing loads of tiny little arrays. If we had tuples we could
> > make things like ST much more efficient.
>
> I think there are better solutions to this problem, if it is actually
> a problem.

Personally i think it is a bit of a problem. Arrays are expensive to
create and destroy, wheras tuples shouldnt be.

But i think its moot overall, as we arent going to retrofit tuples
into perl anyway.

yves

-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About