Hacker Newsnew | past | comments | ask | show | jobs | submit | ajifurai's commentslogin


Actually, TypeScript's `Promise.all` can handle different types too.

    const [a, b] = await Promise.all([fetchA(), fetchB()]); // => a: A, b: B


I am talking about C# / F# context where the lists must have homogeneous types.

That TypeScript supports this is yet more complexity introduced to cover usages of an API not designed around types.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: