-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
F# 9 nullability migration #622
Comments
I expect most things should be not null. Maybe everything. Do you want to contribute a PR with this change? |
Just to clarify, when you ask:
Is the primary benefit of F# 9 in this context limited to getting compiler warnings and clearer communication of the API intent? Are there additional advantages beyond these? I think opening a PR would be relevant too |
The main feature is nullable reference types same as in C# that allows to propagate that from .NET SDK and other libraries to F# code |
Yes, I understand that. However, I'm wondering what additional benefits this approach provides compared to Personnally, the main nullability issue I face with static VM is with Do you think using a Nullable type could help with these core issues? I feel like |
@xperiandri, could you open a PR, please? It's been a while since the library was last updated, and this one seems relevant. Thanks |
High-level description
I've migrated my code to F# 9 compiler and nullability support
Expected or desired behavior
You can pick my changes if you want the same migration
Ecierge/Elmish.Uno#1
Additional Information
The other question is should we restrict a model and a message on a view model to be non-null?
https://github.com/Ecierge/Elmish.Uno/blob/be64c50b6b7cca1ac774704145e09fd17ee4cf3f/src/Elmish.Uno/ViewModels.fs#L143
https://github.com/Ecierge/Elmish.Uno/blob/be64c50b6b7cca1ac774704145e09fd17ee4cf3f/src/Elmish.Uno/ViewModels.fs#L359
The text was updated successfully, but these errors were encountered: