-
Notifications
You must be signed in to change notification settings - Fork 143
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] Parameter owner patterns should be consistent with prefix application expressions #712
Comments
@nojaf My initial decision is to agree with this. Please let me know if you think this is wrong or inconsistent. |
Sounds reasonable. We currently have two settings that control the spaces before upper/lower case invocations (comment). These could be re-used. Makes sense. |
Hi @dsyme, I've implemented this on Fantomas' side: fsprojects/fantomas#2551 |
Great! thank you |
@nojaf @auduchinok Do we need a docs update for this? |
Well, there is no real section on formatting patterns, so maybe we |
This is a hill I am willing to die on. I propose we adjust union case construction expressions to mirror the status quo of pattern decomposition instead. The style guide mandates that there be a space between function and tupled arguments (I'd argue this should apply to method invocation too, but that's a different matter). Since class and case constructors can be used like functions, I don't see why the |
@kerams |
I've also tried to share some context in dotnet/fsharp#15847 (comment). |
there is also this edge case dotnet/fsharp#15780 for fluent notation that currently prevents method and arguments to be separate. |
Union cases patterns should be consistent with their creation expressions, like this:
Currently Fantomas adds an extra space in the last pattern, which makes it inconsistent. I propose we should fix this.
The text was updated successfully, but these errors were encountered: