Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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.


Comment on Re: what would you like to see in perl5.12?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2014-09-18 06:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (108 votes), past polls