3 ms·
I'm curious if you tried out ReasonML[0] at all, for any length of time, before Elm, or even after. https://reasonml.github.io/docs/en/what-and-why https://rea
by no_wizard 7y ago
I'm curious if you tried out ReasonML[0] at all, for any length of time, before Elm, or even after.
https://reasonml.github.io/docs/en/what-and-why https://reasonml.github.io/docs/en/what-and-why
I've really been digging slowly into ReasonML and the biggest gain I can see is that valid reason === valid ocaml (and there's some good server libraries out there for ocaml)
I also like that JSX is the templating language, not that it matters.
Also, have you had any success with manipulating Elm to output static HTML/CSS as well as JS? I know it can do it, but I've never been able to manipulate how it does it (most recent version I tried with: 0.18)
- Chadtech_Real 7y agoI havent actually written any ReasonML, but I once had to review some my former coworker wrote. Thats the extent of my ReasonML experience, so I dont have much of an opinion. However, I was surprised that the ReasonML code I looked at relied on impure functions. I like pure functions so that scares me off a bit from the OCaml as a whole. Regarding static html/css, I havent done that either, so I dont know about it.
- yawaramin 7y ago> the ReasonML code I looked at relied on impure functions. I like pure functions so that scares me off a bit from the OCaml as a whole. ReasonML (OCaml) allows impure functions but the best practice is to stay pure whenever possible. It's a very pragmatic language so despite providing all the functional and immutable programming features, it allows you to cut through the bureaucracy if you need to.
- SupremumLimit 7y agoOne way to get static HTML/CSS from Elm is to execute the JS it produces and serialise the results from the DOM. That's what I do in my static site generator Elmstatic: https://korban.net/elm/elmstatic https://korban.net/elm/elmstatic