Skip to content

[style-guide] space around SynType.StaticConstantExpr #657

Open
@nojaf

Description

@nojaf

Considering the following code:

type T = Provider< @"...">

There needs to be a space before the @ string in order for this to remain valid code.
Should there be a space after the literal in this case?

As mentioned by @auduchinok in fsprojects/fantomas#2101, all other types of arguments do not need a space:

T<int>
T<a * b>
T<_>
T<"123">
T<1, Qwerty, @"123">

What guidance should there be regarding type arguments @dsyme? I don't the guide currently has any information on the subject.

Side note:
Fantomas currently adds the extra space when a leading space is required.
I personally don't have any preference or stake here, I only want a change in Fantomas because the style guide changed.
That is why I'm bringing this up.

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