Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^6: Contexts and Perl 6

by John M. Dlugosz (Monsignor)
on May 20, 2009 at 15:25 UTC ( #765257=note: print w/replies, xml ) Need Help??

in reply to Re^5: Contexts and Perl 6
in thread Contexts and Perl 6

So, that would be a "no"? The concept of context flowing inward is deprecated.

Instead, constructs always do the same thing, which is to return an object that can exhibit different behavior in different contexts later. A simple example, which can be taken as an exemplar, is Nil which replaces "undef in item context or () in list context.".

Is that the plan?


Replies are listed 'Best First'.
Re^7: Contexts and Perl 6
by TimToady (Parson) on May 20, 2009 at 16:54 UTC
    You're asking for an answer that assumes we're using the same definition of "inward". The meaning of that term is unclear in the presence of continuations.
      "inward" as in overloading on return type.

      Where are continuations used in Perl 6? I don't see any language features that explicitly do that. As you said, resuming an exception is simply returning since the stack is not unwound. Closures are starting-off points that take their environment from the actual caller. No co-routine constructs or "live" label references, etc.

      Anyway, my question as it stands, is as has been mentioned on this thread and referenced posts. Or, is the whole conversation overlooking Something Important?


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2018-06-25 11:51 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.