Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
lolinder
on Sept 19, 2023
|
parent
|
context
|
favorite
| on:
JDK 21 Release Notes
In TypeScript at least, async-ness
is
encoded in the type system, because async/await is just syntactic sugar for Promise/then/catch.
kaba0
on Sept 19, 2023
[–]
Well, JS is paired with a single-threaded execution model, so you only have concurrency to worry about. C#, Java has proper multithreading as well, that gives another dimension to the problem.
lolinder
on Sept 19, 2023
|
parent
[–]
Kotlin has multithreading, and it also puts `suspend` in the type system.
n2d4
on Sept 19, 2023
|
root
|
parent
|
next
[–]
Some more examples: Rust, Python (with most/all? type checkers), C# all bake this into their type systems.
vips7L
on Sept 19, 2023
|
root
|
parent
|
prev
[–]
This is more due to the fact that Kotlin doesn’t control its backend and is designed to work with a language that already includes this model, js.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: