Skip to content

Commit 30839a4

Browse files
authored
Merge pull request dotnet#43260 from 0101/whats-new-in-fsharp-9
What's new in F# 9
2 parents 2fbaea2 + e26076e commit 30839a4

File tree

5 files changed

+536
-0
lines changed

5 files changed

+536
-0
lines changed

docs/core/whats-new/dotnet-9/overview.md

+20
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,26 @@ C# 13 ships with the .NET 9 SDK and includes the following new features:
9090

9191
For more information, see [What's new in C# 13](../../../csharp/whats-new/csharp-13.md).
9292

93+
## F# 9
94+
95+
F# 9 ships with the .NET 9 SDK and includes the following new features:
96+
97+
- Nullable reference types
98+
- Discriminated union .Is* properties
99+
- Partial active patterns can return bool instead of unit option
100+
- Prefer extension methods to intrinsic properties when arguments are provided
101+
- Empty-bodied computation expressions
102+
- Hash directives are allowed to take non-string arguments
103+
- Extended #help directive in fsi to show documentation in the read-eval-print loop (REPL)
104+
- Allow #nowarn to support the FS prefix on error codes to disable warnings
105+
- Warning about TailCall attribute on non-recursive functions or let-bound values
106+
- Enforce attribute targets
107+
- Random functions for collections
108+
- C# collection expression support for F# lists and sets
109+
- Various developer productivity, performance and tooling improvements
110+
111+
For more information, see [What's new in F# 9](../../../fsharp/whats-new/fsharp-9.md).
112+
93113
## Windows Presentation Foundation
94114

95115
Windows Presentation Foundation (WPF) includes support for Windows 11 theming and hyphen-based ligatures. For more information, see [WPF in .NET 9 Preview 4 - Release Notes](https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview4/wpf.md).
32.7 KB
Loading
Loading

docs/fsharp/toc.yml

+2
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ items:
292292
href: tutorials/using-functions.md
293293
- name: What's new
294294
items:
295+
- name: F# 9
296+
href: whats-new/fsharp-9.md
295297
- name: F# 8
296298
href: whats-new/fsharp-8.md
297299
- name: F# 7

0 commit comments

Comments
 (0)