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

New iterator method 'try_fold' can be optimized #30

Open
ExpHP opened this issue Sep 11, 2018 · 2 comments
Open

New iterator method 'try_fold' can be optimized #30

ExpHP opened this issue Sep 11, 2018 · 2 comments

Comments

@ExpHP
Copy link

ExpHP commented Sep 11, 2018

Either can gain even more optimized iterator methods by overriding the try_fold method added in 1.27; however, this will cause a pretty big bump in the minimum supported rust version (which appears to be 1.12 based on CI test configuration).

@ExpHP
Copy link
Author

ExpHP commented Sep 11, 2018

Oops! No it cannot, because it requires mentioning the unstable Try trait! 😛

I guess I'll leave this here though for once it actually can be done. (that time must be approaching not too long from now!)

@cuviper
Copy link
Member

cuviper commented Sep 11, 2018

We could use a build script to enable an internal cfg when Try is available.

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

Successfully merging a pull request may close this issue.

2 participants