Uses for nested promises
14 points by pushcx
14 points by pushcx
The argument by convenience for implicitly flattening Promises was always just as bad as the ones for JavaScript's original implicit conversions that led to e.g. the wat talk.
More often than not, this "convenience" is not being invoked intentionally by the programmer, but on accident or because the language simply provides no alternative. The language is guessing at the programmer's intent, essentially running around with a large bucket trying to catch beginner or confused programmers wherever they happen to land.
The argument by convenience for implicitly flattening Promises was always just as bad as the ones for JavaScript's original implicit conversions that led to e.g. the wat talk.
Is it really bad if it takes years for a user like the author of that post to find an issue with it? Seems like the "convenience" argument did work in his case.