@5imian @AdamRackis I've wanted it for things like:
assert('…', do {
if (…) {
… ? x(a) : y(b)
} else if (…) {
} else {
}
});
-
-
places where ternaries "work" but get out of hand fast. /cc
@littlecalculist3 replies 0 retweets 0 likes -
IMHO `do` really shines in situations where you need temporary block-scoped variables, but
1 reply 0 retweets 2 likes
where an immediately-invoked arrow function would be overkill (i.e. no arguments needed)
5:59 PM - 18 Dec 2016
0 replies
0 retweets
3 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.