upsiflu / matsite

2 stars 0 forks source link

Evaluate automatic Control generator #30

Open upsiflu opened 1 year ago

upsiflu commented 1 year ago

edkelly303/elm-any-type-forms 1.0.0✨

-> Implementation should probably be part of https://github.com/upsiflu/restrictive

upsiflu commented 1 year ago

it's amazing. Tests in the github.com/upsiflu/restrictive examples repo.

Drop-in replacement with Value/json Codec via elm-multitool.

Disadvantage: nasty delta (Msg) and state (Model) type signatures.

Solution ideas:

  1. wrap state and delta in opaque types

Question : Does the form example store both the object and its form? probably not. instead, the app keeps the form state in working memory and the object can be derived from that when necessary, for example for uploading.