3 ms·
> popular syntactic sugar without clear semantics and real world connection Uhh... the point of them is that its as close to the semantics of synchronous code
by orf 10y ago
> popular syntactic sugar without clear semantics and real world connection
Uhh... the point of them is that its as close to the semantics of synchronous code as possible. That's the 'real world connection' - your single threaded code can become asynchonous with just a few keyword changes. Rather than "sendRequest()" you do "await sendRequest()".