Hacker News new | ask | show | jobs
by fireattack 2313 days ago
The biggest problem I have with JS in term of readability is IIFE. I know what it does, but it just looks ugly when you have hundreds of them in a program. The "semicolon in front" is even worse, needless to say.

There gotta be a better way to design syntax for an async language.. right?

1 comments

Wait, why do you need IIFE in post-ES6 JS? Just use let/const.
Well, OP's example is using it, but I think it's for top level async/await (not a JS dev here)?
Top level await is in Stage 3, so it'll be baked into the general system before too long.
Yup