by staticassertion · 5y ago · 0 comments
This solves another of the ergonomic issues in Rust. It really feels like within 2021 Rust will hit a point where it feels totally consistent.
The current limitation I find the most annoying is that you can't use associated constants in generics.
The only thing left that I want with generics is variadics/tuples. The only way currently to implement a trait over a generic tuple is to write a macro and call it for however many sized tuples you want. I've not seen any convincing RFCs about it yet though so I'm not confident we'll get them any time soon
https://gist.github.com/PoignardAzur/aea33f28e2c58ffe1a93b8f...