3 ms·
Can someone summarize what this means for the average rust programmer?
by turminal 4y ago
Can someone summarize what this means for the average rust programmer?
- orangesite 4y agoPrimary benefit for average rust programmer: Less worrying about needing to specify lifetimes when using other people's libraries.
- loeg 4y ago> There are a myriad of potential use cases for GATs. Stabilization unblocks probable future language features (e.g. async functions in traits), potential future standard library features (e.g. a LendingIterator or some form of Iterator with a lifetime generic), and a plethora of user use cases (some of which can be seen just by scrolling through the tracking issue and looking at all the issues linking to it). There are other possible uses, but those two are ones a typical Rust developer may have already run into.
- capableweb 4y agoBest documentation is probably the RFC: https://github.com/rust-lang/rfcs/blob/master/text/1598-generic_associated_types.md https://github.com/rust-lang/rfcs/blob/master/text/1598-gene... > Allow type constructors to be associated with traits. This is an incremental step toward a more general feature commonly called "higher-kinded types," which is often ranked highly as a requested feature by Rust users.
- deleted 4y ago[deleted]