@luca_mug I would expect to see it like:
main = Browser.element{
init = init,
update = update,
subscriptions = subscriptions,
view = view
}
@luca_mug I would expect to see it like:
main = Browser.element{
init = init,
update = update,
subscriptions = subscriptions,
view = view
}
@luca_mug What are the advantages of a purely functional language?
Here’s an example from the Elm examples section:
main = Browser.element
{ init = init
, update = update
, subscriptions = subscriptions
, view = view
}
@alexkorban @luca_mug Fair. CSS has been around for almost 25 years and asked to do a lot of different things in the browser.
@luca_mug What’s the appeal of Elm? First glance at it and the code formatting boggles my mind.
@luca_mug I don’t agree with the premise that HTML and CSS are difficult to use when you’re trying to do the layout and styling of a web page.
But if a package like this helps Elm devs get a project finished and out to the web then by all means go for it!
@kingkool68
WordPress developer at @CoderPad. Formerly of @nclud @spiritedmediaco, @pewresearch, @usnews. I made dummyimage.com and married @naudebynature.