←back to thread

.NET 10

(devblogs.microsoft.com)
489 points runesoerensen | 1 comments | | HN request time: 0s | source
Show context
cies ◴[] No.45898206[source]
That's a lot of goodies in a new release! It seems it is outpacing the JVM's development...
replies(1): >>45898403 #
lolive ◴[] No.45898403[source]
Apart from [the equivalent of] records, I see nothing big.

Except...

this '''let! a = fetchA() and! b = fetchB()''' really puzzles me. Does C# have a high-level syntax for concurrency timing? [something that Java is strongly lacking, and that Typescript did solve with Promise.all(), which is an ugly syntax, from my perspective]

Any elaboration on this is very welcome.

replies(5): >>45898449 #>>45898472 #>>45898482 #>>45898872 #>>45900126 #
1. whoisthemachine ◴[] No.45900126[source]
As others point out, that's F#, but yes C# has `async`/`await`, and has all the `Promise` methods, just under the `Task` class instead (and with slightly different names/calling conventions through out).