top | item 45770232 (no title) paduc | 4 months ago For the typescript world, there is neverthrow[0] which offers a similar Result type.[0]: https://github.com/supermacro/neverthrow discuss order hn newest pshirshov|4 months ago Promise<Result<number, string>> everywhere or type EitherT[F[_], E, A] = F[Either[E, A]] and then def dosomething(): F[String, Number] ?Isn't this beautiful: https://github.com/7mind/distage-example/blob/develop/bifunc... ? RedNifre|4 months ago Why does it have Either? Doesn't TypeScript have "A | B" style sum types? load replies (2)
pshirshov|4 months ago Promise<Result<number, string>> everywhere or type EitherT[F[_], E, A] = F[Either[E, A]] and then def dosomething(): F[String, Number] ?Isn't this beautiful: https://github.com/7mind/distage-example/blob/develop/bifunc... ? RedNifre|4 months ago Why does it have Either? Doesn't TypeScript have "A | B" style sum types? load replies (2)
RedNifre|4 months ago Why does it have Either? Doesn't TypeScript have "A | B" style sum types? load replies (2)
pshirshov|4 months ago
Isn't this beautiful: https://github.com/7mind/distage-example/blob/develop/bifunc... ?
RedNifre|4 months ago