use Perl Log In
5.12 proposals
Now that 5.10 is out, rjbs and I have fired off a bunch of proposals for 5.12 features to p5p. These are things which should be dead obvious, at least on the surface.
rjbs proposed...
Was I called as a method? A caller() extension so a routine can tell if it was called as a method or not.
Lexical named subroutines:
Anonymous packages: Yep, a namespace with no name.
I've proposed...
Named subroutine parameters:
method declaration:
rjbs proposed...
Was I called as a method? A caller() extension so a routine can tell if it was called as a method or not.
Lexical named subroutines:
to take over frommy sub foo {...}
. Yes please, I'll take 10.my $foo = sub { ... };
Anonymous packages: Yep, a namespace with no name.
I've proposed...
Named subroutine parameters:
Oh god please can we? The idea is to start simple and obvious and build out from there. Discussion is positive and lively. There's lots of small, but very important, details to work out.sub foo ($this, $that) { ... }
method declaration:
No moremethod foo { return $self->{foo} }
my $self = shift;!
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.

Taking inspiration from Perl 6? (Score:1)
In particular, I'm thinking about named parameters: I think that if Perl 5 is going to have them, it
Re: (Score:1)
That's not to say that they're bad, or that they w
rjbs
Junctions chainable comparsion (Score:1)
I like method... (Score:1)
Generators (Score:1)
Every token is like an unnecessary stain on whitespace and idleness.
Re: (Score:1)
Re: (Score:1)
Every token is like an unnecessary stain on whitespace and idleness.
These are called coroutines (Score:1)
yes! (Score:1)
Perl 5.12 requests: normal 'dot' operator (Score:1)
use 'moderndot';
or whatever that made $a.b mean $a->{b} and $a.b() mean $a->b() like every other language. Yes, I know this would not be backward compatible with string concat, but it's where Perl6 is going
Re: (Score:1)
There already is [cpan.org]. :-)