Discussion

Ask HN: Is it possible to write a JavaScript runtime with "await by default"?

So that this code: ``` let a = await aFuncThatReturnPromise(); console.log(a) ```

becomes the following and does the same thing: ``` let a = aFuncThatReturnPromise(); console.log(a) ```

For sometimes I do not want wait, use: ``` let a = nowait aFuncThatReturnPromise(); ```

3 points stanlogin 2 years ago 5 comments

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton