Re:Comparing k-NN in Rust
by pcwalton on Tuesday June 10, 2014 @04:07PM
(#7874989)
I think we can fix it by adding a zip method on slices to avoid the null checks (as we just investigated).
But note that the C++ version has no bounds checks, so it's unsafe. You could always write C in Rust in the unsafe sublanguage, so saying it's "fundamentally inferior" is not true in any case.
But note that the C++ version has no bounds checks, so it's unsafe. You could always write C in Rust in the unsafe sublanguage, so saying it's "fundamentally inferior" is not true in any case.