4 ms·
> Simple things like returning a const reference to a slot in an immutable array are easily 10x the amount of source code in Rust when compared to C. I’m very
by steveklabnik 2y ago
> Simple things like returning a const reference to a slot in an immutable array are easily 10x the amount of source code in Rust when compared to C.
I’m very interested in what you mean here. Isn’t the syntax identical in both cases?
&array[index]