Problem with recursion? (was [plt-scheme] Re: Novice, needs help writing function )

From: Matthias Felleisen (matthias at
Date: Sun Jan 6 15:44:19 EST 2008

On Jan 6, 2008, at 1:46 PM, Prabhakar Ragde wrote:

> I would suggest the opposite -- that HtDP encourages one to develop  
> in generality, as opposed to just about every other approach, which  
> presents a bunch of examples and then leaves students to form their  
> own (possibly

wrong: usually not possibly

> imperfect) generalizations.

You're both correct. Think about it!

> I find it amusing that section 9 of HtDP tiptoes into both self- 
> referential data definitions and recursive functions, whereas  
> section 8.2 presents a Scheme grammar, naturally self-referential,  
> with absolutely no fanfare or fuss.

I consider it a nice trick -- anticipate w/o 'I told you so.' --  

Posted on the users mailing list.