Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^5: Why is the execution order of subexpressions undefined? (why not?)

by diotalevi (Canon)
on Jul 15, 2006 at 00:02 UTC ( [id://561367]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Why is the execution order of subexpressions undefined? (why not?)
in thread Why is the execution order of subexpressions undefined?

Yeah... it's the closest we get to it. What I really wish we had was not only undefined execution order but *delayed*execution* so nothing actually ran until you really needed it.

⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

  • Comment on Re^5: Why is the execution order of subexpressions undefined? (why not?)

Replies are listed 'Best First'.
Re^6: Why is the execution order of subexpressions undefined? (why not?)
by ikegami (Patriarch) on Jul 15, 2006 at 00:06 UTC
    Is this something planned for Perl6? I know it will have lazy lists.
Re^6: Why is the execution order of subexpressions undefined? (why not?)
by Anonymous Monk on Jul 15, 2006 at 00:07 UTC
    Be careful what you wish for. Haskell has lazy evaluation, but it is extremely easy to create a program plagued with space leaks. And if you eliminate the automatic memoization, you'll end up turning your space leaks into time leaks.

      Oh genie? I wish for sanity too. There are places in real code that I want this to happen.

      ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

        I wish for sanity too. There are places in real code that I want this to happen.
        Delayed evaluation in Perl is spelled sub.

Log In?
Username:
Password:

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

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

    No recent polls found