naomijub / edn-rs

[DEPRECATED]: Crate to parse and emit EDN
https://crates.io/crates/edn-rs
MIT License
81 stars 14 forks source link

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

Closed Grinkers closed 4 months ago

Grinkers commented 4 months ago

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 https://github.com/edn-rs/edn-rs/issues/136. What we really want is a something like seq but I'm not sure how viable that is in rust.