Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: what would you like to see in perl5.12?

by BrowserUk (Pope)
on Aug 07, 2008 at 23:52 UTC ( #703020=note: print w/replies, xml ) Need Help??

in reply to what would you like to see in perl5.12?

Here's a couple of related new ones that fall out of something I'm working on:

  • The ability to pass anonymous blocks to subroutines in positions other than the first.

    Ie. Drop the requirement for the sub keyword. Possibly only if the recipient sub is prototyped to take sub references: eg.

    sub someSub (&&&) { my @coderefs = @_; ... }
  • The ability to pass bare expressions as parameters to user subs.

    In the same way as map & grep can take an expression that is executed repetitively within the context of the function: eg: @array = map sqrt( $_ ), 1 .. 10;

I've no idea if either is actually feasible, but if you don't ask, you'll never know.

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://703020]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2018-04-19 14:29 GMT
Find Nodes?
    Voting Booth?