-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add examples for all library functions #5
Comments
One way to approach this is to add examples directly to the FSHarp.Core signature files, e.g. https://github.com/dotnet/fsharp/blob/master/src/fsharp/FSharp.Core/array2.fsi There are pros and cons to doing this and you might that find that on your first PR to submit examples there is a discussion with the dotnet/fsharp engineers about whether this is the right place for examples to live. Pro: right at the core of the ecosystem Therefore we need a way to mix these examples in on an earlier path |
Another kind of useful documentation/examples is using tests, as having "trivial" use cases of library functions tested, and have a way to look for these to insert as examples in final documentation, which doubles as consistency checks on api |
Just a note that the Con above might be mitigated somewhat by generating these docs from a self-built version of FSharp.Core, or pulled from a nightly feed or such. We just need the dll + associated XML file to generate the docs, and we've just defaulted to nuget for ease of acquisition. |
Yup agreed |
This is being tracked in dotnet/fsharp#12124 |
This was suggested in the F# community dugnad today
The text was updated successfully, but these errors were encountered: