Using {:then} or {:catch} throws an error compiling, saying there is whitespace expected (after the then/catch). If whitespace is added, {:then } and {:catch } are accepted, and afaict things work fine with no identifier to store the resolution or rejection value in.
I'm not 100% clear on whether we want to allow identifier-less {:then} and {:catch} blocks (probably? It's not in the docs but I don't see the harm), but if so, we shouldn't be requiring whitespace.
Using
{:then}or{:catch}throws an error compiling, saying there is whitespace expected (after thethen/catch). If whitespace is added,{:then }and{:catch }are accepted, and afaict things work fine with no identifier to store the resolution or rejection value in.I'm not 100% clear on whether we want to allow identifier-less
{:then}and{:catch}blocks (probably? It's not in the docs but I don't see the harm), but if so, we shouldn't be requiring whitespace.