Get the latest tech news
Fear Not the Association of Types
— Gavin Gray Rough data hit my eyes recently and the takeaway was unsurprising: Rust associated types are misunderstood. In Chapter 17 of the Rust Book Experiment Will Crichton decided to inject questions on API design.
I’ve been knee-deep in Rust traits recently and feel I have enough energy to channel some passion into a post on associated types. The real reason is that Rust’s type system affects how the code runs in a deeper way than Java’s. All of these individual pieces of Rust’s type machinery are in place so that the compiler can replace calls like into_iter and fmt with specific function addresses.
Or read this on Hacker News