Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Enable langversion switch to control warnings about preview library functions. #825
Enable langversion switch to control warnings about preview library functions.
I propose ... the F# compiler supports an ExperimentalAttribute (doc'd Here. This attribute is used to tag values that are part of an experimental library feature.
We can use this attribute to mark new APIs added to FSharp.Core and adjust the compiler so that it doesn't issue a warning when the compiler is executed with the preview switch.
The existing way of approaching this problem in F# is ...
With the switch the warning would appear if the compiler is run without langversion:preview speciifed
Pros and Cons
We can preview library features alongside language features, without the developers having to understand whether the warning was scary or not.
The disadvantages of making this adjustment to F# are ...
Estimated cost (XS, S, M, L, XL, XXL):
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: