[style-guide] Reconsidering long tupled signatures #644
Description
@nojaf I'm applying fantomas latest to the signatures in the F# compiler. dotnet/fsharp#12346
I'm wondering if I made a mistake with the decision on long signature formatting. Do you know where the long discussion we had on this was, where I laid out the options? We settled on this:
member ResolveDependencies:
scriptDirectory: string
* scriptName: string
* scriptExt: string
* timeout: int ->
obj
When the thing is tupled+curried we have no real choice but to put the *
at the start of line as I mentioned in the discussion. Howerver for things that are only tupled this is feeling more wrong to me than I realised. The most common is either everything curried or everything tupled. So it seems that for tupled-but-not-curried that we should use the nicer:
member ResolveDependencies:
scriptDirectory: string *
scriptName: string *
scriptExt: string *
timeout: int ->
obj
I still feel the return type should be indented too.
What do you think? If you agree I can make the adjustment to fantomas and apply to the F# style guide.
Thanks
That's just so much easier to read.