F# Spec doesn't mention private representation Discriminated unions
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- fsharp
- Domain
- documentation
Research direction
Start with the F# language specification and the discriminated-union example in the issue. Determine the documented effect of private on the union representation, including C# constructor visibility, F# pattern matching, and union-case construction; done means the specification clearly states the intended behavior.
Written by the indexing model from the issue text.
Description
For example, in this type:
type HtmlAttribute =
private | HtmlAttribute of name:string * value:string
What's the effect that private should have? I see that in C# projects, I no longer have the NewHtmlAttribute constructor, but I can keep doing pattern matching and create new values with HtmlAttribute("a", "b") in F#. Is that the intended behaviour? I was expecting to not be able to create new values using the union case constructor, and force people to use a static method that normalizes the arguments
- Dominant language
- TeX
- Stars
- 311
- Forks
- 291
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from fsharp/fsharp.org
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
fsharp/fsharp.org#1026 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
fsharp/fsharp.org#1021 · 2 comments · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
fsharp/fsharp.org#1024 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 58/100
fsharp/fsharp.org#1023 · 2 comments ·
-
N/A Open
Difficulty 5/5 Over a week Newbie friendliness 1/100
fsharp/fsharp.org#1019 ·
All issues in fsharp/fsharp.org
Similar issues
-
Add: hunch Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
AbdelStark/awesome-typesafe#104 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
A11y ♿️
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Link Checker Report Openautomated issue report
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
documentation improve or update documentation priority/low triage
Difficulty 2/5 Half a day Newbie friendliness 86/100
warpdotdev/docs#782 · 1 comment ·