-
Notifications
You must be signed in to change notification settings - Fork 21
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
Relax of indentation rules to allow tuples to have newline after the comma #777
Comments
I'd like to see this if possible |
I just checked master and both work today: let v : _*_ =
1,
2 giving
|
I thought I oversimplified the example, but it looks like I just haven't tried writing it like that in a while. |
Please reopen. This should also apply for
Currently disallowed. |
That one is by design, because of the undentation rule for |
The only solution that would not require parens would be to allow a M(a=a=>a + 1, b=1) or M(a=a=>a + 1,
b=1) I don't think simply dropping the M(a=a->a + 1, b=1) |
But the |
Relax of indentation rules to allow tuples to have newline after the comma
So that one could write something like:
instead of:
Currently it is possible to wrap the tuple in
()
and get the desired newlines that way, but it seems noisy and it introduces itsown tab stop.Pros and Cons
Pros: Less noise and more consistency with how commas are usually placed.
The disadvantages of making this adjustment to F# are ...
None that I can think of.
Extra information
Estimated cost (XS, S, M, L, XL, XXL): S?
Related suggestions:
#724
#470
Affidavit
Please tick this by placing a cross in the box:
Please tick all that apply:
The text was updated successfully, but these errors were encountered: