BASTA 2022: What C# Could Learn From Rust



As we all know especially here at BASTA, C# and .NET are great platforms for building software. Yet, there is this new language Rust that many people are so excited about. It is an officially supported language in both Windows and Linux. Microsoft is using Rust in many areas for new and innovative solutions. So what makes Rust so unique from the viewpoint of a C# developer? Which tricks does Rust know that C# could learn from it? Join Rainer in a one-hour, code-only discovery tour about the differences and similarities between Rust and C#.

The code snippets shown in this session can be found at https://github.com/rstropek/rust-samples/blob/master/rust-lang-highlights/src/main.rs.

00:00:00 Welcome
00:04:09 Constants
00:13:51 Variables
00:24:56 Type inference
00:34:59 Statements vs. Expressions
00:39:20 Everything Traits
00:54:26 Enums, Macros