Comment

Comment by hombre_fatal

Of course, the other nice thing about the JS example compared to Go is that it's trivial at the callsite to do this:

    const [[rA, errA], [rB, errB]] = await Promise.all([
      engine.doSomethingWithA(),
      engine.doSomethingWithB()
    ])
At least these days you can ask an LLM to write the WaitGroup boilerplate for you in Go.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton