develooper Front page | perl.perl5.porters | Postings from May 2016

Re: Indirect object syntax

Thread Previous | Thread Next
From:
perl
Date:
May 25, 2016 16:32
Subject:
Re: Indirect object syntax
Message ID:
b412a45f-40fc-311d-fc03-00728a70b4ed@profvince.com
>
> I agree with removing indirect object notation examples given in core
> documentation. If anyone strongly objects to removing examples from the
> perspective Abigail originally provided ("Seeing it is knowing it
> exists"), we can keep it in some cases with a comment saying direct
> methods should be used instead.
>
> Regarding the "indirect" pragma, I believe last time I saw a
> significant reduction in speed, which I think should at least be
> revisited in any future suggestion of implementing it in core. Off-hand,
> I don't see a particular problem with providing it with a "use 5.x"
> pragma statement. I would be happy to see a discussion around the topic
> before any decisions are reached.
>

What performance hit are you talking about? indirect.pm acts purely at 
compile time, so unless your code relies on a lot of eval()s, the impact 
on performance is minimal - but then you're already screwed 
performance-wise anyway.

Even if that's not the topic of this thread, I will reiterate that I 
would strongly object to incorporating the current implementation of 
indirect in core. That's not the way you should do it when you can just 
hack into the parser.


Vincent

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