Skip to content

Conversation

@gusty
Copy link
Member

@gusty gusty commented Dec 20, 2025

With the introduction of Nullable Reference Types in F#9 we need to make sure our code is ready to support it.

After reviewing extensions in this PR, it seems that after this adjustments the code will be ready to be compiled in F#9, it won't generate any xxx | null signature, that's why we pin signatures here, and it won't need at the moment of this PR any introduction of xxx | null signature.

Internal null checks would become redundant in principle, but they need to stay as this library could still be consumed by clients in F#8 or lower, so they won't have null analysis at the type system level and might call a function in Extensions with a null value.

The only thing that would need to be done is to revert the last commit here, since those functions and constraint are not available until F#9.

@gusty gusty force-pushed the gus/null-and-fixes branch 11 times, most recently from 1bce483 to 8ef804d Compare December 21, 2025 09:25
@gusty gusty force-pushed the gus/null-and-fixes branch from 8ef804d to b4b145d Compare December 21, 2025 09:43
@gusty gusty marked this pull request as ready for review December 21, 2025 09:50
@gusty gusty enabled auto-merge (squash) December 21, 2025 09:57
@gusty gusty merged commit e4c53b4 into master Dec 21, 2025
4 checks passed
@gusty gusty mentioned this pull request Dec 27, 2025
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.

2 participants