On Fri, May 15, 2009 at 12:07 PM, Raul Miller <[email protected]> wrote:

> Once again, I would advise you not divorce the mechanism from
> the mathematics.
>
> There are problems which strongly favor recursive implementations,
> but ... as my dad frequently told me, "it sounds like your solution
> is looking for a problem."
>
>
>

Lost you here. What do you want to say ? I am not proposing a solution at
all.

Let me put it in another way to see if I can convey the message again.

On the F# forum, I asked the same question:

'Hey my fib = fib (n-1) + fib (n-2) caused stack overflow, what can I do ?'

The answer:

'wrote it in TCO form as F# has TCO'

I don't think people there are dumb enough to not knowing that this is a
trivial problem that don't need to be solved this way and  is more about
'how to write proper recursive function', under the assumption that 'it must
be done this way, for whatever reason'.

What you are saying sounds more like 'you would never need this form of
coding in J as you can always find other ways'. If that is the case, what is
the purpose of '$:' ?
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to