4 ms·
Lending iterators is the most obvious. Also simplification for library maintainers, and the ability to better abstract over traits (leading to less boxing / dyn
by masklinn 4y ago
Lending iterators is the most obvious. Also simplification for library maintainers, and the ability to better abstract over traits (leading to less boxing / dynamic dispatch).
So more flexible APIs and more efficient code for the consumer, and simpler library code (which is usually an improvement in reliability and maintainability).
https://github.com/rust-lang/rust/pull/96709#issuecomment-1173170243 https://github.com/rust-lang/rust/pull/96709#issuecomment-11... Has an extensive list of libraries wanting to use GATs, with their justifications.