Re: [w3ctag/design-reviews] Top-level await (#376)

From dynamic imports it is clear that the operation is async given that you must write `await import()` but @hober and I believe that developers will find it surprising that some of their declarative import statements are suddenly async as well.

Would it be possible to create new syntax? say `await import { output } from './mymodule.js'` or `async import...`? and maybe throw an error in the case it is used wrongly?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/376#issuecomment-495209837

Received on Thursday, 23 May 2019 13:05:48 UTC