Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • It's maybe kinda obvious and you've probably already discussed this in depth, but wouldn't it be useful to try and pick some features like Perl 6 is doing?

    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
    • Except that Perl 6's named parameters are implemented in terms of Capture objects, which are complicated, full of all manner of Perl 6ish syntax, and can be used all over the place for lots of other things.

      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.
  • junctions would make given even more powerfull and if (3 $a 7) { looks also very nice.
  • Especially if we could cheaply prevent those methods being called as functions.
  • What I'd like to see is something like Python's generators. While one could argue we've got something similar by using closures, its not the same thing. Generators can return values with a yield statement, resume execution on the next line when they are called again, which can make the control flow in the generator much clearer.

    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.
  • named subroutine parameters, please please please.
  • It would be SO cool if there was a way,
    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.