Comment

Comment by GreenDolphinSys

They're saying that you don't always have to return Result<T, Box<dyn Error>>, you can implement the From<Error> trait on the type and use ? as usual.

In other words implementing that trait lets you set a return type like Result<T, CustomAppError> use ? on it.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton