[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Fragile Recursion?
- From: Miles Bader <miles@...>
- Date: Thu, 12 Apr 2012 12:08:19 +0900
Tim Hill <drtimhill@gmail.com> writes:
> Thanks for the replies everyone. Yes, aware that "do .. end" isnt
> directly related to closures, it was of course designed to make the
> local variable private to the closure so that the recursion was no
> longer fragile.
>
> I still think there might be some value in a distinguished variable
> that held the "current" function so that at least directly recursive
> functions could be written in a more robust manner.
I'm not sure how that's really going to make things "more robust" --
there's nothing particularly "fragile" about the current system...
-miles
--
Cat, n. A soft, indestructible automaton provided by nature to be kicked when
things go wrong in the domestic circle.