Skip to content
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

Consider reviewing/updating F# library guidelines for 2019 #97

Open
dsyme opened this issue Oct 4, 2019 · 4 comments
Open

Consider reviewing/updating F# library guidelines for 2019 #97

dsyme opened this issue Oct 4, 2019 · 4 comments

Comments

@dsyme
Copy link
Contributor

dsyme commented Oct 4, 2019

The F# library guidelines from 2014 have served us fairly well. However they almost certainly now need updating to reflect changes and maturing of the F# ecosystem.

Discuss here.

cc @cartermp

@dsyme
Copy link
Contributor Author

dsyme commented Oct 4, 2019

cc #96

@cartermp
Copy link
Member

cartermp commented Oct 4, 2019

Seems like this should mention FSharp.Core as follows (simplified):

Unless you only want consumers of your library to be on the latest supported toolset, you will need to specify an explicit reference to FSharpCore:

<PacakgeReference Update="FSharp.Core" Version="..."/>

The version you choose should be based on the minimum F# language version you want to support. The minimum FSharp.Core version for each language version is listed below:

Minimum F# language version Minimum FSharp.Core version
F# 4.1 4.3.4
F# 4.5 4.5.2
F# 4.6 4.6.2
F# 4.7 4.7.0

This tradeoff - features vs. reach - is an essential decision to make as a library author.

@dsyme
Copy link
Contributor Author

dsyme commented Oct 27, 2020

@cartermp We should consider moving some of the material in http://fsharp.github.io/2014/09/19/fsharp-libraries.htmlacross into the Microsoft docs?

@cartermp
Copy link
Member

We can, yeah. There is already a library author guidance guide here: https://docs.microsoft.com/en-us/dotnet/standard/library-guidance/

So the F# docs would not be a bad choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants