<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000066">
I second the premise.<br>
<br>
But the 0-case is missing. You basically proposed:<br>
<br>
grok(understood) -> ok.<br>
<br>
grok(Prereq) -> grok(Prereq).<br>
<br>
Which is a dead loop for Prereq /= understood, as the jokes it
inspired demonstrate.<br>
<br>
There is hope though, I was allowed to hear the sense of wonder
first hand when a CS student discovered that on machine code level
recursions really become iterations. I am pretty sure the newest
generation of programmers have recursion hardwired now, for skipping
all the low level stuff and starting out with functional languages
(not kidding).<br>
<br>
Henning<br>
<br>
On 5/19/11 2:58 PM, Joe Armstrong wrote:
<blockquote
cite="mid:BANLkTinzSULv0D_pWSJh7XUAscOxdMeLAA@mail.gmail.com"
type="cite">I think how we teach recursion is wrong.<br>
<br>
Understanding recursion is really easy, <br>
all you have to do is understand recursion.<br>
<br>
/Joe<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
erlang-questions mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
</blockquote>
<br>
</body>
</html>