Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by BrowserUk (Patriarch)
on Aug 07, 2008 at 23:52 UTC ( [id://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?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://703020]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2024-04-19 09:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found