We're planning to use this pattern for the next version of Prisma!
-
-
-
Nice! Seems like a bunch of people have recreated this pattern Would be cool to see it land as a native thing
Kraj razgovora
Novi razgovor -
-
-
I prefer to use Promise<Either<Error, T>> https://gcanti.github.io/fp-ts/modules/Either.ts.html …
-
How does either work? Can you link me to an example?
Kraj razgovora
Novi razgovor -
-
-
I use this pattern extensively. For examplehttps://github.com/joemccann/bitmex/blob/master/README.md …
-
Nice! I’m digging it For simple stuff try/catch is fine but it quickly grows unwieldy
Kraj razgovora
Novi razgovor -
-
-
Sometimes I wish async/await worked that way out of the box.
-
Yeah that would be nice.
I love the cleaner await syntax but it’s kind of negated by all the let block scoping and try catch blocks littered around in my code - Još 1 odgovor
Novi razgovor -
-
-
I created a Babel plugin to do the same.https://www.npmjs.com/package/babel-plugin-better-async-await …
-
Ooooooo very nice! I was wondering if something like this existed
- Još 1 odgovor
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.