|
|
|
|
|
by pornel
1109 days ago
|
|
This article conflates two things: 1. A real limitation of JS that prevents it from using results of async functions in sync functions. 2. What syntax author prefers for awaiting async calls (here: none) This makes "colored/colorless" discisions confusing, because most languages have fixed #1 and don't have any serious deficiency there, but also most languages don't have hidden implicit await #2 — often on purpose, because await has performance implications, changes semantics of locks, and becomes a leaky abstraction around FFI. |
|