News for hackers. Stuff that matters.
Re:Learning Rust by pcwalton on Sunday November 02, 2014 @01:21PM (#8547432)
> Actually the problem is Rust currently doesn't implement traits for static-sized arrays because the size is part of the type signature and each size would need to be implemented separately.

But it does implement those traits for slices. So this isn't typically a problem in practice because you can coerce fixed-length arrays to slices and then compare those.

Re:Learning Rust by kaoD on Sunday November 02, 2014 @02:52PM (#8547837)
Indeed, though it's still a pain for nested arrays, as you have to coerce the inner layers first via mapping. Quite burdensome for arbitrary nesting.

Anyways, most of the time you're better off implementing a concrete type like he did.