Ancestors

Toot

Written by yosh on 2025-01-20 at 16:19

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

Descendants

Written by yosh on 2025-01-20 at 16:21

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

Written by consoli on 2025-01-20 at 18:26

@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

Written by consoli on 2025-01-20 at 18:39

@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

Written by yosh on 2025-01-20 at 18:46

@consoli oh interesting, I never knew!

=> More informations about this toot | More toots from yosh@toot.yosh.is

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113861592730849608
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
275.997807 milliseconds
Gemini-to-HTML Time
0.678011 milliseconds

This content has been proxied by September (ba2dc).