develooper Front page | perl.perl6.internals | Postings from August 2004

Re: Something to ponder

Thread Previous
From:
Matt Fowles
Date:
August 17, 2004 15:07
Subject:
Re: Something to ponder
Message ID:
f2601a7f04081715075a0a7bce@mail.gmail.com
Dan~

This is the coolest things I have heard all day.  I am not sure that
my brain is entirely around what situations it would be useful in yet.
 But it is really cool.

It seems to me that it would probably be most useful in the tail call
setting where you are just passing the result from one function into
another...

Matt

On Tue, 17 Aug 2004 16:22:58 -0400, Felix Gallo <fsg@sunscreamer.com> wrote:
> On Tue, Aug 17, 2004 at 04:08:34PM -0400, Dan Sugalski wrote:
> > 1) We're going to have MMD for functions soon
> > 2) Function invocation and return continuation invocation's
> > essentially identical
> > 3) Therefore returning from a sub/method can do MMD return based on
> > the return values
> >
> > Someone probably ought to think about what sort of syntax you might
> > add to a language to take advantage of this...
> 
> the two-dimensional '+' results-distribution operator, naturally.
> 
> #!/usr/bin/perl9
> 
> $x -----\
>          \
> @mylist -+--- $obj.mymmdsub;
>          /
> %hash --/
> 
> F.
> 


-- 
"Computer Science is merely the post-Turing Decline of Formal Systems Theory."
-???

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About