Hello I’m following along with the guides…
Please have a look at this gist
After fiddling and trying to find a working solution, I decided it’s time to introduce a default model.name
on page load.
However, I choose the wrong abstraction on line #129. So I must “revert” the 2 levels of indirection I introduced. That way, I can inject the necessary value model.name
on line #130.
Choosing the wrong abstraction is quite common when coding IMO.
So I can only suppose this situation is quite common in Elm too, and it must be a bit of pain trying to “unwrap” functions similar to this one later on once your project evolved quite a bit.
So I’m wondering: are there tools that exists and can unwrap this way?
This:
textInput "Your name" SetName
Transformed into:
input_ "text" "Your name" SetName
Transformed into:
input [ type_ "text", placeholder "Your name", onInput SetName ] []
I can understand that all the information is there statically.
Sorry if this is a noobish question, I’m not quite sure what I’m looking for.
I’m using this vscode exension btw
Thanks