-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explicit proper tail calls #1760
Comments
I'd prefer using attributes, since tail calls ideally shouldn't affect the behavior. |
cc #271 |
Tail calls do have an observable effect: they can change a program that On Oct 3, 2016 01:19, "ticki" [email protected] wrote:
|
That's the practical outlook. In idealised machine (infinite memory) it From my watchtower we would evaluate tail call annotations only after it On Oct 3, 2016 10:10, "Demi Marie Obenour" [email protected] wrote:
|
@ticki Attributes sound more like the solution for making non-tail calls explicit: If you want explicit talk calls, then you could write An alternative approach would be to require tail calls in many situations and give warnings in situations that look like tail calls should be required but they seem impossible. An attribute like I think explicit tail calls via |
Tail calls ( |
Closing as a duplicate of #271, let's try to keep each feature to one thread 😄 |
Rust should have a syntax for explicit proper tail calls. I have a pre-RFC on this Internals thread. Is it ready to be proposed as a full RFC?
The text was updated successfully, but these errors were encountered: