[plt-scheme] contract & tail recursion

From: YC (yinso.chen at gmail.com)
Date: Fri Sep 12 00:55:58 EDT 2008

Hi -

Question regarding contracts:

I am reading up on contracts, and I just found that while `any` is tail
recursive, `any/c` is not.  Since any/c matches one and only one return
value and is not tail recursive, what about other tests that matches one and
only one value?  Such as `void?`, `null?`, `list?`, etc?  Are they tail
recursive?  I assume (and hope) they are, is my assumption correct?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20080911/0c974fb1/attachment.html>

Posted on the users mailing list.