Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

As a Rust newbie wrapping a C API, I ran into a baffling error for something like wstr.s[0 .. wstr.len], where the s field is an array, and the len field is a u16.

I like static typing with inference, but I'm still getting the hang of the Rust type system. In this case, a little leniency would have been nice.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: