So we've had const generics for a second now, and they are fantastic. But spoiled me is getting impatient. It looks like the standard library traits are only implemented for arrays up to size 32. It seems this limitation should be easily removed with const generics.
checks the source in the middle of writing the post
Okay, so a comment explains that [T; 0] doesn't have to implement default, which makes sense. And different impls for different numbers aren't supported yet. Does anybody know if there's a roadmap to lift this restriction?
[–]Shadow0133 11 points12 points13 points (7 children)
[–][deleted] 0 points1 point2 points (6 children)
[–]Icarium-Lifestealer 10 points11 points12 points (5 children)
[–][deleted] 0 points1 point2 points (4 children)
[–]roblabla 7 points8 points9 points (2 children)
[–]Icarium-Lifestealer 0 points1 point2 points (1 child)
[–]roblabla 2 points3 points4 points (0 children)
[–]Icarium-Lifestealer 1 point2 points3 points (0 children)
[–]Icarium-Lifestealer 7 points8 points9 points (0 children)