News for hackers. Stuff that matters.
Re:A Sad Day for Rust by layoutIfNeeded on Friday January 17, 2020 @01:12PM (#22077401)
>You're sending a reference to an array of unknown size.

The next argument is literally the length of the array.

Re:A Sad Day for Rust by jdbernard on Friday January 17, 2020 @03:42PM (#22079028)
No, that's what the caller says is the length of the array and as we already established, they're lying. ;)

In all seriousness there is quite a difference in structures that allow themselves to have guarantees built into the language/tooling (like including the size of the array in the languages basic "array" building block) vs. the more manual book-keeping the C code above requires.