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

Update FS-1092-anonymous-type-tagged-unions.md #591

Merged
merged 1 commit into from
Jun 8, 2021

Conversation

charlesroddie
Copy link
Contributor

Mention the need to avoid exposing usage of this feature to non-F# .Net languages.

@dsyme dsyme merged commit ee84023 into fsharp:main Jun 8, 2021
@@ -88,6 +88,8 @@ An anonymous type-tagged union type should only be considered for when a union i

5. There is some identified, concrete, simply explained benefit over using labelled discriminated unions, e.g. "we have a simpler API with fewer overloads".

6. There is no possibility that the type will end up being consumed by .Net languages other than F#.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a bit strong - it might be reasonable to expose - but I know what you mean :)

Copy link
Member

Choose a reason for hiding this comment

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

Similar thoughts, but it's a good thing to clarify for now. Maybe as the feature takes shape a bit more we'll have a more nuanced position

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.

3 participants