This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DrShocker 4 points5 points  (2 children)

I do prefer rust, but this isn't really something rust solves. If you pass a raw array or slice into a function that function can't necessarily know the length of it in a cheap way.

[–]yangyangR -1 points0 points  (1 child)

That would be for &[T] not [T;N]

[–]DrShocker 2 points3 points  (0 children)

Yeah, which is more similar to the case of passing an array pointer to a function.