-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
So, if Result(T) is interface, why not just create two
type ok(type T) T
// Implement Result(T)
type err(type T) error
// Implement Result(T)types implementing Result(T)?
- More similar to Rust's
Result(T)(you can addtype ok(T), err(T)constraint to prohibit any other implementations) Ok's size is equal toTandErr's size is equal toerror
Metadata
Metadata
Assignees
Labels
No labels