-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
[Feature request] #1309
Comments
Hello @halcwb, thank you for writing this suggestion. I'm afraid this falls under the section what are we not looking for. You are deviating from the Feliz syntax and to me, this seems inconsistent on your end. let appliedOther = someOther func
someFunc [
appliedOther [
"some item"
"another item"
]
] To have your proposed style, yet another check needs to be done if the AST matches the For the time being, I'm not allowing any more stylistic changes that are not based on the F# style guides. I hope you understand and thank you again for showing an interest in the project. |
@nojaf. Ok, that's crystal clear. Where would you think this could be discussed best? The G-research of Microsoft guidelines? Thanks. |
G-Research is a closed system and is not using Fable, so your best bet would be the Microsoft style guide. |
@nojaf Just a quick sanity check for me, is at least my issue clear to you? If not, just say no, then I have to rewrite things. |
This single case here is clear for me. Imagine the following code: List.map fst [
("a", 1); ("b", 2); ("c", 3)
] This also matches the shape you originally wrote down someOther func [
"some item"
"another item"
] I assume you would not write the Does it only occur with a single non-list parameter and a list or are you suggesting it as well for other constructs? Is there a need for a nested list scenario? someFunc [
someOther func [
"some item"
"another item"
]
] And also, does this the style make sense outside the currently targeted framework. I don't need any answers right here, but I'm trying to illustrate that there should be clear reasoning behind all of it. |
I propose we ...
Start a list argument like this:
The existing way of Fantomas deals with this problem is ...
The same applies to indentation of records.
Pros and Cons
The advantages of making this adjustment to Fantomas are ...
I have experienced lot's of mind bending refactorings with Fantomas formatting code, especially in code using Fable or Feliz.
The disadvantages of making this adjustment to Fantomas are ...
?
Examples
See my blog: https://informedica.nl/?p=203
See my issue: #999
Extra information
Estimated cost S?
Affidavit (please submit!)
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: