Skip to content

Feature: Surround a custom operator definition with white space #718

Open
@nojaf

Description

@nojaf

Proposal to add a new setting that surronds custom operators with spaces.

F.ex

let (!>) x f = f x

becomes

let ( !> ) x f = f x

For any custom operator that starts with * and that has more than one character, you need to add a white space to the beginning of the definition to avoid a compiler ambiguity. Because of this, it seems useful to always have spaces surrounding custom operators.

As this is a stylistic request, it should be configurable by a setting SurroundCustomOperator, disabled by default.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions