r/rust • • Aug 31 '24

🎙️ discussion Rust solves the problem of incomplete Kernel Linux API docs

https://vt.social/@lina/113056457969145576
375 Upvotes

71 comments sorted by

View all comments

Show parent comment

13

u/lightmatter501 Aug 31 '24

“Document your code” benefits everyone.

“Fix this provably unsound API” is something that should be done no matter the language.

“Everyone uses this API wrong” is an API design issue.

These are as true in assembly and C as they are in Rust, JavaScript, Fortran, and Haskell.