Re:A Guide to Closures in Rust
by shred45 on Wednesday May 24, 2023 @08:56AM
(#36057343)
I may be biased because I generally avoid closures entirely (I prefer the certainty over ownership and type signatures that traditional functions give), but I do my best to avoid closures when working with async in Rust. A lot of examples for frameworks will make use of async closures, and I typically convert those to functions as quickly as possible, which can be tricky the first time because of the elided types.
[ Parent
| on HN ]
There are no comments on this comment yet.