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

Support preview F# langauge features #518

Merged
merged 2 commits into from May 31, 2020
Merged

Support preview F# langauge features #518

merged 2 commits into from May 31, 2020

Conversation

cartermp
Copy link
Contributor

I suppose the downside to these tests is that they may need to be updated over time as new preview features come in.

@@ -201,6 +201,7 @@ module internal CompilerServiceExtensions =
[| //yield "--debug:full"
//yield "--define:DEBUG"
//yield "--optimize-"
yield "--langversion:preview"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason why users might need to opt out of that? Can't think of any myself.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly. You could imagine an fssnip showing off a feature in preview where we decide to change the syntax. That snippet would then break when fssnip updates to a later FCS. But in general I think the ability to show preview features outweighs the small likelihood that we would do something to a preview feature that led to big breaking changes).

Other than that, there's no real mechanical downside. The compiler used to generate data for formatting already has the preview codepaths, they're just not activated unless you flip this flag.

@cartermp cartermp merged commit 97d1516 into fsprojects:master May 31, 2020
@cartermp cartermp deleted the langversion-preview branch August 4, 2020 05:35
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

Successfully merging this pull request may close these issues.

None yet

2 participants