Skip to content

{:then} / {:catch} require whitespace but not an identifier for resolution/rejection value #1507

@Conduitry

Description

@Conduitry

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions