New blog post: musings on iterator trait names
https://blog.yoshuawuyts.com/musings-on-iterator-trait-names
This post is a summary from a Mastodon thread from a while ago, talking about verbs, nouns, and trait names in Rust.
=> More informations about this toot | More toots from yosh@toot.yosh.is
And here is the related crate which implements this design: https://docs.rs/iterate-trait/latest/iterate_trait
=> More informations about this toot | More toots from yosh@toot.yosh.is
@yosh also note that there's already a "famous" Itarable
trait, it was extensively discussed during the GATs stabilization (and rfcs)
https://rust-lang.github.io/generic-associated-types-initiative/explainer/iterable.html
(except that unfortunately it never left the rfcs, afaik)
=> More informations about this toot | More toots from consoli@hachyderm.io
@yosh i found an issue from 2013 wanting something like this
https://github.com/rust-lang/rust/issues/7597
=> More informations about this toot | More toots from consoli@hachyderm.io
@consoli oh interesting, I never knew!
=> More informations about this toot | More toots from yosh@toot.yosh.is This content has been proxied by September (ba2dc).Proxy Information
text/gemini