2 ms·
> This is one of those 'worse is better' things in language design, I believe. It guarantees simplicity, traded off against extra verbosity. And with top-level
by eyelidlessness 5y ago
> This is one of those 'worse is better' things in language design, I believe. It guarantees simplicity, traded off against extra verbosity.
And with top-level await the restriction goes away (albeit the ESM equivalent is still a bit more verbose).
(await import('anything'))(...yup)