News for hackers. Stuff that matters.
Re:Rust 1.50 by csomar on Thursday February 11, 2021 @12:33PM (#26104504)
The naming can be confusing since "then" is usually used for async operations.
Re:Rust 1.50 by steveklabnik on Thursday February 11, 2021 @12:39PM (#26104600)
That ship had already sailed in Rust https://doc.rust-lang.org/stable/std/?search=then
Re:Rust 1.50 by hobofan on Thursday February 11, 2021 @12:41PM (#26104633)
Option and Result already have a `and_then` in addition to the futures methods you mention, so it should just always be assumed that then/and_then have slightly different meanings depending on the context.