News for hackers. Stuff that matters.
Re:TypeScript 5.0 by dmix on Thursday March 16, 2023 @06:13PM (#35189541)
> Deep support for an alternative to exceptions using a Failable<TResult, TError> type

Is there a good library for this currently?

I've been looking for one and a Maybe library. The Maybe one I use is pretty small.

Re:TypeScript 5.0 by halfmatthalfcat on Thursday March 16, 2023 @07:25PM (#35190396)
fp-ts (and most functional libraries) have a handy Either type just for this: https://gcanti.github.io/fp-ts/modules/Either.ts.html
Re:TypeScript 5.0 by dmix on Thursday March 16, 2023 @08:18PM (#35190893)
That looks perfect thank you.