Re:Rust support in the Linux kernel
by nicoburns on Thursday December 09, 2021 @01:09PM
(#29500826)
> It is possible to write code in that language that you assume will work a certain way but then in practice it does a lot of things you didn't think you signed up for
This is also possible for C. Most commonly around Undefined Behaviour. C only does what you expect it to do if you know the C spec inside out. Rust can have confusing behaviour too, but it is generally much better in this regard than C or C++.
You may find it easier to reason about C than Rust, but that's only because you know C better. I find it much easier to reason about Rust.
This is also possible for C. Most commonly around Undefined Behaviour. C only does what you expect it to do if you know the C spec inside out. Rust can have confusing behaviour too, but it is generally much better in this regard than C or C++.
You may find it easier to reason about C than Rust, but that's only because you know C better. I find it much easier to reason about Rust.