-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Rust temporary lifetimes and "super let" - Mara's Blog
The lifetime of temporaries in Rust is a complicated but often ignored topic. In simple cases, Rust keeps temporaries around for exactly long enough, such that we don’t have to think about them. However, there are plenty of cases were we might not get exactly what we want, right away.
In this post, we (re)discover the rules for the lifetime of temporaries, go over a few use cases for temporary lifetime extension, and explore a new language idea, super let, to give us more control.
rwietter and yhx-12243Nadrieril, daniel-pfeiffer and cosmicexplorer