-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Add comprehensive What's New documentation for F# 7 #50098
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: T-Gro <[email protected]>
docs/fsharp/whats-new/fsharp-7.md
Outdated
|
|
||
| ## Static abstract members in interfaces | ||
|
|
||
| [Static abstract members in interfaces](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/tutorials/static-virtual-interface-members) is a new feature of .NET 7. One notable application is [generic math](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/tutorials/static-virtual-interface-members#generic-math). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the links, correct link to the C# feature is this: https://learn.microsoft.com/en-us/dotnet/csharp/advanced-topics/interface-implementation/static-virtual-interface-members and correct link to the generic-math section is https://learn.microsoft.com/en-us/dotnet/csharp/advanced-topics/interface-implementation/static-virtual-interface-members#generic-math
Also make it clear that the link leads to documentation of the corresponding feature on C#'s side.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot this is for you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in acdf57c. Updated both links to the correct paths and added clarifying text that they lead to C# documentation.
Co-authored-by: T-Gro <[email protected]>
Summary
Replaces placeholder blog link with full documentation for F# 7 features following F# 9 template structure.
Fixes #50481
Changes
The F# 7 documentation now includes:
IAddition<'T>andINumber<'T>examples. Links to corresponding C# documentation for cross-reference.'Tinstead of^Tfor type parameters, natural member call syntax ('T.Zerovs explicit constraint invocation), and grouped constraint declarations--refout/--refonlyflags or MSBuild propertiesCode examples demonstrate practical usage patterns rather than abstract syntax. Documentation follows established F# 9 style with inline examples, sentence case headings, and active voice.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
Internal previews