krzkaczor / babel-plugin-tailcall-optimization

Tail call optimization for JavaScript!
MIT License
193 stars 9 forks source link

Discussion about mutual recursion #6

Open dai-shi opened 8 years ago

dai-shi commented 8 years ago

Hi! This is a nice plugin. I once created a TCO library https://github.com/dai-shi/continuation.js. It is so slow that I don't feel like fitting with Babel plugins, but it supports mutual recursions. It's faster than Traceur when I tested a simple example a while back, though.

The question I want to raise here is if someone is interested in mutual recursions. As a start, I wonder if anyone can look into this. http://glat.info/js.metaret/

Thanks.