Make std's Result a type alias with default type parameters

There are some suggestions in this neighboring thread to use a type alias for the "Result with defaults" case. For example,

type Fallible<T=()> = Result<T, Box<Error>>;

The motivating case is that thread is the possibillity of making main return a Result, with the signature

fn main() -> Fallible
2 Likes