Uses for nested promises

14 points by pushcx


rpjohnst

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.