18–20 Sept 2024
Europe/Vienna timezone

Introduction to Rust: Quality of Life Beyond Memory Safety

18 Sept 2024, 10:30
30m
"Room 1.31-1.32" (Austria Center)

"Room 1.31-1.32"

Austria Center

123
Rust MC Rust MC

Speaker

Benno Lossin

Description

Rust is about more than just memory safety: Several language features provide guardrails that help programmers prevent common mistakes. At the same time, they facilitate the creation of APIs that better convey their intent and make it hard to misuse them.

This presentation provides a gentle and beginner-friendly (no Rust knowledge required) introduction to several of these features. Potentially covered features are:
- enums (safe tagged unions): avoid forgetting to handle all cases.
- encapsulation: make it hard to (ab)use implementation details.
- traits: design flexible interfaces and swap implementations without a hassle.
- documentation: leverage markdown directly in the source code to provide useful examples and guidance for API users.

Primary author

Presentation materials