Skip to content

F# 9 nullability migration #622

@xperiandri

Description

@xperiandri

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?

type DynamicViewModel<'model, 'msg when 'model : not null and 'msg : not null>
      ( args: ViewModelArgs<'model, 'msg>,
        bindings: Binding<'model, 'msg> list)
type ViewModelBase<'model, 'msg when 'model : not null and 'msg : not null>(args: ViewModelArgs<'model, 'msg>)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions