Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There is actually a Stage 1 proposal that introduces an expression that does _exactly_ that (because it's not as easy as just making `const x = for(let i of foo) { yield i; };` parse.)

https://github.com/tc39/proposal-do-expressions

https://babeljs.io/docs/en/babel-plugin-proposal-do-expressi...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: