Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by ikegami (Patriarch)
on Jul 14, 2006 at 21:16 UTC ( [id://561329]=note: print w/replies, xml ) Need Help??


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

The new value is still passed by reference, but all of this is besides the point. As I said, such mechanisms weren't used.
  • Comment on Re^4: Why is the execution order of subexpressions undefined? (why not?)

Replies are listed 'Best First'.
Re^5: Why is the execution order of subexpressions undefined? (why not?)
by diotalevi (Canon) on Jul 15, 2006 at 00:02 UTC

    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.

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

      Is this something planned for Perl6? I know it will have lazy lists.
      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.

        ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

Log In?
Username:
Password:

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

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

      No recent polls found