Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[style-guide] Treat cast operators :> and :?> as pipe operators #737

Open
cmeeren opened this issue May 19, 2023 · 0 comments
Open

[style-guide] Treat cast operators :> and :?> as pipe operators #737

cmeeren opened this issue May 19, 2023 · 0 comments

Comments

@cmeeren
Copy link

cmeeren commented May 19, 2023

I suggest that the style guide is updated to specify that the cast operators :> and :?> can be treated as pipelines when formatting.

For example, for a suitable max width, Fantomas currently formats

MyImpl(arg) :> MyInterface |> MyUnionCase

as

MyImpl(arg) :> MyInterface
|> MyUnionCase

whereas I'd suggest

MyImpl(arg)
:> MyInterface
|> MyUnionCase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant