On 4/22/09 11:19 PM, "Werner LEMBERG" <w...@gnu.org> wrote:

> 
> 
>>> Please review this patch here:
>>> 
>>> http://codereview.appspot.com/8874/show
>> 
>> Looks good!
> 
> I'm not a good lisp programmer, but isn't the standard method for
> searching like that to not use a loop but recursive calls?  It doesn't
> really matter, but Han-Wen likes to use recursive calls a lot :-)
> 

This code actually uses recursive calls to the procedure loop, which is
defined in a let block, if I read it correctly.

And it's consistent with what I find online for binary searches in Scheme:

http://www.math.grin.edu/~stone/events/scheme-workshop/binary-search.html

Carl



_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to