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

to collections return reference instead of move data out of Edn. #153

Merged
merged 1 commit into from
May 1, 2024

Conversation

Grinkers
Copy link
Collaborator

@Grinkers Grinkers commented May 1, 2024

This is a breaking change, but right now iterating over nested collections is a huge pain. It requires cloning the entire Edn object each time.

I'm not particularly happy with the naming, but it's the least breaking version for now. Another example of needing to think really hard on #136. What we really want is a something like seq but I'm not sure how viable that is in rust.

@Grinkers Grinkers requested review from naomijub and evaporei May 1, 2024 18:41
Copy link
Owner

@naomijub naomijub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing those clones was always part of our plan, but I guess we forgot

Thanks

@Grinkers Grinkers merged commit c60d05b into naomijub:main May 1, 2024
15 checks passed
@Grinkers Grinkers deleted the borrow_collection branch May 1, 2024 19:52
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 this pull request may close these issues.

2 participants