You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not something which has obviously "already been decided" in previous versions of F#. If you're questioning a fundamental design decision that has obviously already been taken (e.g. "Make F# untyped") then please don't submit it.
Please tick all that apply:
This is not a breaking change to the F# language design
I or my company would be willing to help implement and/or test this
For Readers
If you would like to see this issue implemented, please click the 👍 emoji on this issue. These counts are used to generally order the suggestions by engagement.
The text was updated successfully, but these errors were encountered:
Interestingly enough, the implementation of match! actually desugars to let! followed by a function instead of match, which is also exactly what this suggestion would do. So this would be pretty easy.
I am generally not in favour of extensive use of function - very occasionally, but it should be rare. So in all cases I would prefer an explicit match!.
Add function! (function-bang) keyword to computation expressions
I propose we extend computation expressions with a new keyword, function! (function-bang), that functions a match! For example, instead of writing:
Pros and Cons
Pros: Aids code readability in specialized cases.
Cons: increases complexity.
Extra information
First suggested 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 👍 emoji on this issue. These counts are used to generally order the suggestions by engagement.
The text was updated successfully, but these errors were encountered: