News for hackers. Stuff that matters.
Re:.NET 10 by greener_grass on Wednesday November 12, 2025 @05:22AM (#45898482)
Here `a` and `b` can have different types:

    let! a = fetchA() and! b = fetchB()
Whereas `Promise.all` usually requires all promises to have the same type (returning a `List<T>` or even a `List<obj>`) .

See https://learn.microsoft.com/en-us/dotnet/fsharp/whats-new/fs...

Re:.NET 10 by ajifurai on Wednesday November 12, 2025 @07:59AM (#45899594)
Actually, TypeScript's `Promise.all` can handle different types too.

    const [a, b] = await Promise.all([fetchA(), fetchB()]); // => a: A, b: B
Re:.NET 10 by greener_grass on Wednesday November 12, 2025 @08:12AM (#45899723)
I am talking about C# / F# context where the lists must have homogeneous types.

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