You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rust recently gained an ability to specify associated constants in traits, and I wonder if we can use it to simplify GeneritArray. My current experiments are here: matklad@20be18b
Looks like it's not working at this time though :(
The text was updated successfully, but these errors were encountered:
Associated constants do not work in array lengths yet rust-lang/rust#44168 not even on nightly.
I'd think folks should remove the dependency on generic-array entirely once that bug gets fixed and all the bits get stabilized. I donno if there is any need to change this crate, merely phase it out eventually.
Yeah, I've played a bit more with it and I see now the limitations of associated constants, and it's reasonable to asume that, once they are fixed, we'll have proper const type parameters!
Hi!
Rust recently gained an ability to specify associated constants in traits, and I wonder if we can use it to simplify GeneritArray. My current experiments are here: matklad@20be18b
Looks like it's not working at this time though :(
The text was updated successfully, but these errors were encountered: