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;!
5.12 proposals
More |
Login
| Reply
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 would make sense to take the ones that will be in the future version of Perl, just to make transition smooth (for those who want to do the jump) and comprehension quick (for those who want to read both). Moreover, some topics have been probably already ana
Re: (Score:1)
That's not to say that they're bad, or that they wouldn't work well in Perl 5. They're just a lot more work than starting with
($foo, $bar)and building from there.rjbs
Junctions chainable comparsion (Score:1)
I like method... (Score:1)
Generators (Score:1)
For me the real benefit of generators is that they are very fast, in the interpreter instead of 100+ lines of C to enter a function, once a generator is called initially its just a h
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 anyway.
Re: (Score:1)
There already is [cpan.org]. :-)