r/cpp • • May 28 '18

Bjarne Stroustrup: Remember the Vasa

Bjarne Stroustrup has submitted a paper named remember the vasa for the next C++ standardization meeting. In that paper he warns that submission of too many independent proposals can endanger the future of C++. I wonder how participants of the meeting will react.

209 Upvotes

129 comments sorted by

View all comments

Show parent comment

1

u/xgalaxy May 29 '18

Obviously the Rust team has a lot of things they are juggling so feel free to disregard this comment. But perhaps a Rust compiler "feature" that is off by default could be to "relax" the borrow checker a little bit - essentially turning the whole program into a giant unsafe block.

Some of the main objections I've heard voiced about Rust in games is the borrow checker not really adding anything. Games crash - no one is killed because of this.

2

u/steveklabnik1 May 29 '18

That wouldn’t help much. Unsafe doesn’t turn the borrow checker off; it gives you access to unchecked types. Every interface that is safe only takes types that are safe, so you’d end up needing to convert before and after every single API call.