Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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?

—John


Comment on Re^6: Contexts and Perl 6
Select or Download Code
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?

      —John

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2014-09-15 04:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (145 votes), past polls