tailcall
tailcall copied to clipboard
Safe, zero-cost tail recursion for stable Rust
Hi! Thanks for the great crate! I was excited to see this went so well. In my benchmark PR, I outlined how mutual recursion doesn't really work. I may come...
Hi there, trying to test out the library, although it seems to be panicking. Here's the code I'm testing: ```rust use std::path::Path; #[tailcall::tailcall] fn recurse(n: u64) -> u64 { let...
I'm getting a warning: unreachable expression rather than a hard error for non tail calls, I can produce a minimal example if that's helpful, but I first wanted to check...
It's often nice to eliminate the tail call in a function that can also call itself in non-tail position, I don't believe that this is supported by this library, and...
:construction: **This PR currently only contains updates to the runtime system. The macros still need to be updated in order for it to work properly.** :construction: This branch is an...
It would be similar to https://github.com/PyO3/pyo3/pull/3815 and look like this: ```rust #[tailcall::tailcall_module] pub mod oddity { #[tailcall::multi_tailcall] pub fn is_even(x: u64) -> bool { if x > 0 { is_odd(x...
[I am trying out this library](https://github.com/SichangHe/fmtt/commit/c488b0a63bd50534bf96c378ea75643ebca9c541) and it seems to work perfectly, except that there is a compile-time `unreachable_code` warning coming from I-don't-know where. ## Warning message ```rust $ RUSTFLAGS="-Zmacro-backtrace"...