Open cmeeren opened 1 year ago
The disadvantages of making this adjustment to F# are: None.
Disadvantage is probably that we're risking to break current method resolution corner cases.
By the way, it's only a problem, when there is ParamArray
in signature
I propose we support C# parameters with default values, like the below (from FluentAssertions):
In C#, this can be called as
BeNull()
. However, in F#, we have to supply thebecause
parameter and therefore have to writeBeNull("")
.Pros and Cons
The advantages of making this adjustment to F# are: Working as expected, same as existing optional parameters.
The disadvantages of making this adjustment to F# are: None.
Extra information
Estimated cost (XS, S, M, L, XL, XXL): S
Related suggestions: (put links to related suggestions here)
Affidavit (please submit!)
Please tick this by placing a cross in the box:
Please tick all that apply:
For Readers
If you would like to see this issue implemented, please click the :+1: emoji on this issue. These counts are used to generally order the suggestions by engagement.