Skip to content
Rust Search
← RustConf 2019

Messing around with fn main() and getting away with it

Rust Programming Language
RustConf 24:00 5759 views

RustConf 2019 - Messing Around with FN Main() and Getting Away with it by Yoshua Wuyts The introduction of return types in main has made writing binaries a lot nicer. But why stop there? What if we could make main an async fn to support top-level await? Or perhaps allow main to take command line arguments as parameters? In this talk I’ll show how to make fn main perform party tricks, make boilerplate disappear, and saw code size in half. And by the end of the show you’ll have a good picture to

Player unavailable or embedding blocked? Use the YouTube link above.

Other talks by Yoshua Wuyts

Extending Rust’s Effect System

Rust Programming Language
RustConf 29:53 11050 views

Effects are notations used on types, functions, and traits to communicate semantic properties about the language. Over the past year the Keyword Generics Initiative has been investigating ways in which we can enhance Rust’s effect system to become more flexible and more consistent. In this talk we’ll walk you through what effects are, how they’re currently represented in Rust, which limitations they impose on the language, and what the Keyword Generics Initiative is working on to make working with effects in Rust more expressive.