-
Notifications
You must be signed in to change notification settings - Fork 793
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
Adding uncontentious methods from RFC FS-1004 #1350
Conversation
Hi @wallymathieu, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution! The agreement was validated by Microsoft and real humans are currently evaluating your PR. TTYL, MSBOT; |
This looks good, I'm ok with this addition to the RFC for this release. Please add 3-4 unit tests to the FSharp.Core unittests? |
AppVeyor lists this failure
Not sure why, it looks unrelated to your changes. |
Quite odd indeed. |
That build looks a bit flaky. |
…visualfsharp into RFC-FS-1004-Result-methods
Looks like all it needed was some random nudge. ;) |
[<CompilationRepresentation(CompilationRepresentationFlags.ModuleSuffix)>] | ||
module Result = | ||
|
||
/// <summary><c>map f inp</c> evaluates to <c>match inp with Error e -> Error e | Ok x -> Ok (f x)</c>.</summary> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These summaries should be English-language. I know they're using the style from the "Option" summaries, but those ones should really be changed too :)
The MSDN docs use summary strings like Transforms an option value by using a specified mapping function.
Merging, will update the doc strings separately. |
👍 |
https://github.com/fsharp/FSharpLangDesign/blob/master/RFCs/FS-1004-result-type.md
The implementation is heavily inspired by how the Option module is structured.
I've added the files in the collections meta folder, since that's where option.fsi and option.fs live (in my mind is somewhat similar).