Hacker News new | ask | show | jobs
by eyelidlessness 1684 days 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)