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 ( [id://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

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?

      —John

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-12-09 09:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (53 votes). Check out past polls.