-
Notifications
You must be signed in to change notification settings - Fork 121
change return type of @sorted_map.keys/values to Iter #2123
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
base: main
Are you sure you want to change the base?
Conversation
Change keys(), values(), and elems() to return iterators instead of arrays for better memory efficiencyCategory Documentation of test case name doesn't match functionalityCategory All test assertions updated to call collect() on iteratorsCategory |
Pull Request Test Coverage Report for Build 6855Details
💛 - Coveralls |
cdbb06e
to
5c174ea
Compare
Same as #2124, this introduces breaking changes. It would be better to have some migration process for users. |
Thanks for the feedback. I’d like to ensure we handle the migration correctly. Since this is a return type change (not just a rename), could you clarify the preferred way to deprecate the old behavior while maintaining backward compatibility? I noticed PR #1861 made a similar change directly—should we follow that precedent, or is there a different pattern you’d recommend for this case? |
5c174ea
to
c2f9399
Compare
b3df260
to
389ff77
Compare
Yeah, I admit that #1861 did it abruptly. If possible, I would like you to define a new method, probably something like |
Waiting for #2124 to be merged first. |
see #2108