Skip to content
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

Tail Recursion Optimization #41694

Closed
00imvj00 opened this issue May 2, 2017 · 5 comments
Closed

Tail Recursion Optimization #41694

00imvj00 opened this issue May 2, 2017 · 5 comments

Comments

@00imvj00
Copy link

00imvj00 commented May 2, 2017

Hello, i think memory management and borrowing becomes easy when we use recursion in rustlang. but as i have observed there is very poor support for recursion in rust. that is what making rust for beginner to come and start doing stuff. this is my honest opinion. The solution is if in rust, we provide tail recursion optimization then there will be no need to implement drop trait for those custom data structures, which is again confusing and kinda complex.why i am telling you is lot of my friends leave rust because these issues are killing productivity and at the end of the day people want to be productive. i love rust a lot a lot
a lot. that is why i am doing all of these to make sure, these kinda end user issues gets solved.

I hope you guys will consider this rookie's request and may be think about it.

@oli-obk
Copy link
Contributor

oli-obk commented May 2, 2017

There's a postponed RFC for that: rust-lang/rfcs#271

Feature requests of this magnitude generally belong to the RFC repository ;)

@00imvj00
Copy link
Author

00imvj00 commented May 2, 2017

it got opened in 2014. i think this is critical than it sounds. why ? because this is stopping lot of new comers to get into systems programming faster because, new comers won't know to manage this lower level when they are getting into systems programming. i hope you guys will give bit more importance to this problem, because this problem can solve some other problems out of the box.

@oli-obk
Copy link
Contributor

oli-obk commented May 2, 2017

@i-m-v-j feel free to open a new RFC. That is the fastest way to get your way! The last RFC was postponed because it wasn't ready for Rust 1.0, but I think a well motivated and detailed RFC has a good chance today, since guaranteed tail recursion could be implemented in MIR

@hanna-kruppe
Copy link
Contributor

Note that there is a new RFC on (explicit) tail calls: rust-lang/rfcs#1888

@steveklabnik
Copy link
Member

Hello! As mentioned above, this is not the right place for this discussion. We keep the issue tracker for bugs only. As such, I'm going to give this a close. Please weigh in on that RFC! Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants