Skip to content

[refmt request] local open can be a bit agressive #2164

Description

@texastoland

I'm currently working around it with open!.

Expected:

let (--) = Belt.Array.range;
let range2D = (~w, ~h) => {
  open Array.Infix;
  0 -- (h - 1) <#> (i => i * w + 1 -- (i + 1) * w);
};

Actual:

let (--) = Belt.Array.range;
let range2D = (~w, ~h) =>
  Array.Infix.(0 -- (h - 1) <#> (i => i * w + 1 -- (i + 1) * w));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions