HaloO

John M. Dlugosz wrote:
I was trying to figure out exactly how Captures manage to stay invisible even though functions return them, yet still let you use Capture objects when you want to. Please see my conclusions at <http://www.dlugosz.com/Perl6/web/return.html>. The Summary at the very bottom clarifies the Synopses.

I like the concept of auto-collapsing ReturnCaptures. It reminds me
to my idea of an AssignmentProxy as discussed in "assignable mutators
(S06/Lvalue subroutines)". If such a ReturnCapture could also be
preliminary of some kind, then lvalue subs could be lazily resumed when
the rvalue comes in. Also infix:</> needs a lazy item that is collapsed
into Int, Num or Rat depending on the constraint of the container it
ends up in eventually. An Any gets the Rat. Hmm, and a Str perhaps the
two constituting Ints as fraction put into lowest terms?

Regards, TSa.
--

"The unavoidable price of reliability is simplicity" -- C.A.R. Hoare
"Simplicity does not precede complexity, but follows it." -- A.J. Perlis
1 + 2 + 3 + 4 + ... = -1/12  -- Srinivasa Ramanujan

Reply via email to