Code samples for Rust talk

53 points the-handsome-dev

Hi all. I am giving a talk at the beginning of September tilted Should you use Rust?. Naturally, I am pro using Rust and the talk is to convince them to start using it. In preparation, I have done the talk to a few people and they recommend I add code examples and code comparisons of things that Rust will prevent.

Can anyone please give examples of code with bugs in other languages (JS, Java, C#, Python etc) that Rust will prevent and the Rust equivalent.

Any useful points that you think are valid of why people should use Rust are also welcome