Skip to content

.|> should have lower precedence than -> #38761

Open
@DhruvaSambrani

Description

@DhruvaSambrani

Issue

Doing

data .|> x -> f(x, 2) .|> g

expands to

data .|> x -> (f(x,2) .|> g)

but should expand to

data .|> (x -> f(x,2)) .|> g

Workaround

Add parentheses

Metadata

Metadata

Assignees

No one assigned

    Labels

    breakingThis change will break codeneeds decisionA decision on this change is neededparserLanguage parsing and surface syntax

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions