3 ms·
> Though it is fun to rag on C++ every now and again, I believe Google's C++ style guide is a subset of features (classes, no exceptions, subset of boost,..).
by PyroLagus 7y ago
> Though it is fun to rag on C++ every now and again, I believe Google's C++ style guide is a subset of features (classes, no exceptions, subset of boost,..).
Which is the same thing Genode does[1], and it has served them well. Maybe a different language like ADA/SPARK or something else would have been better, but C++ was what they're familiar with, so they made it work. Although I like Rust, it's a bad argument here. Rust has been changing a lot and is still changing, and Fuchsia wasn't started yesterday. And with C++, you could even replace critical parts with formally verified LEAN[1], which has C++ code generation and should be even safer than Rust.
[0] https://genodians.org/nfeske/2019-01-22-conscious-c++ https://genodians.org/nfeske/2019-01-22-conscious-c++
[1] https://leanprover.github.io/ https://leanprover.github.io/
- steveklabnik 7y agoDon’t forget that Fuchsia also has a lot of Rust in it already. These things don’t have to be either/or.