-
-
Notifications
You must be signed in to change notification settings - Fork 190
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
fsharp_space_before_uppercase_invocation=true breaks method calls #1437
Comments
Wow, shouldn't this be an F#-compiler bug? |
@knocte Nope, it's per-spec. The application without space inside has a higher precedence than a normal one, otherwise it'd be very hard to come up with rules for applications and access-via-dot syntax, and cases like the following ones would be messed up: f(x, y).P
f (x, y).P |
hey thanks for the info, but what do you mean exactly by that example? how is |
Here the first example applies |
Truly interesting, I guess I hadn't come up with this because the fluent style is less visible in functional languages (because returning the same element in each call attracts a programming style that involves mutability). And what would |
Well, the tuple example is not very correct, and my point needed a syntax example where parens were required. 🙂 f(g x).P
f (g x).P |
The operators and applications part of this table below can give more info: https://docs.microsoft.com/en-us/dotnet/fsharp/language-reference/symbol-and-operator-reference/#operator-precedence |
Ok thanks! |
Issue created from fantomas-online
Code
Result
Problem description
The output code causes the compilation errors:
Extra information
This seems to have been introduced in 4.4.0-beta-003.
Options
Fantomas Master at 02/05/2021 16:56:34 - 0cbe3df
The text was updated successfully, but these errors were encountered: