Front page | perl.perl5.porters |
Postings from October 2009
Re: do SUBROUTINE(LIST)
Thread Previous
|
Thread Next
From:
Tom Christiansen
Date:
October 27, 2009 09:15
Subject:
Re: do SUBROUTINE(LIST)
Message ID:
20319.1256660115@chthon
>* Andy Dougherty <doughera@lafayette.edu> [2009-10-27 14:45]:
>> As others have noted, the point might be to encourage users to
>> use a different (presumably better) means of accomplishing the
>> same end. "do sub()" is mostly of that ilk.
> No, it's not.
>> Or it might be that the item is really in the way of fixing
>> some important problem. "$*" was more of that sort.
> You missed a third case.
> Zefram brought up `do SUB(LIST)` because it's an edge case he is
> having to consider (as long as it's supported) in his attempt to
> implement lexical subs. If it were done away with, then this new
> feature would cost less to implement.
That puts things in a different light. I'm still nervous about it,
but I'm also interested in seeing lexical subs. Being able to write
my sub foo { }
instead of
my $foo = sub { };
would save confusion.
--tom
Thread Previous
|
Thread Next