I think the only thing that could really benefit from a macro system in Elm
would be a deriving clause similar to Haskell.
This way we could get Json decoders for free:
type alias Model = { foo: String, bar: Int } deriving Json.Decoder
Which would generate modelDecoder : Json.Decoder Model
This way we could add more stuff after deriving for different scenarios.
On Saturday, 11 June 2016 21:26:55 UTC+2, Isaac Shapira wrote:
>
> Continuing the discussion started here:
>
> https://github.com/elm-lang/elm-compiler/issues/1413
>
--
You received this message because you are subscribed to the Google Groups "Elm
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.