Monday, June 27, 2005

Quickest way to circumvent tail-recursion in Scheme

Replace exp with (values exp).

3 comments:

Anonymous said...

In which implementation is that? I tried Gambit-C, Chicken and Scheme48, and didn't encounter the problem...

Dave Herman said...

I used PLT Scheme.

It's not a problem, though, it's proper behavior by definition. Procedure arguments are in non-tail position.

Kanye Co Jamila said...

Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Front end developer learn from Javascript Training in Chennai . or Javascript Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry. ES6 Training in Chennai