News for hackers. Stuff that matters.
Re:The Registers of Rust by steveklabnik on Wednesday March 08, 2023 @02:29PM (#35073619)
> Futures are sort of like Result types in that a Future can complete with either a value or an error.

Incidentally, for curious readers, the first version of the Future trait in Rust always returned a Result<T, E> from its poll method. The second version decided to instead return T directly, since T could be Result<T, E> too, making things a bit more general, but also leading to a tiny bit of type tetris.

Doesn't mean that I'm saying anything about whatever Dart does here, just that I also think there's a connection here :)

There are no comments on this comment yet.