Skip to content

Allow implicit calls with inline for/while? #5196

Open
@helixbass

Description

@helixbass

Noticed this while working on the Prettier plugin: there's currently an asymmetry between inline if vs inline for/while with respect to implicit calls

Eg this parses:

a if b then c
a b, if c then d

While these don't:

a while b then c
a b, while c then d

a for b in c then d
a b, for c in d then e

I started playing with this on my allow-implicit-call-for-while branch but was running into some tricky stuff in the rewriter

So opening this issue at least as a reminder

Not sure if there's ever been any consideration/discussion of this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions