Capture Clauses as Effects
Summary
The article analyzes Rust closure captures (move, ref, clone) and argues for a more ergonomic model via an explicit own keyword and an effects-based notation using with-clauses. It walks through numerous code examples comparing different capture strategies, discusses potential tooling support, and weighs the trade-offs of explicit capture versus a streamlined approach. The piece concludes with a vision for more tightly scoped effects to improve readability and writer ergonomics.