Re:Elm in Production: 25K Lines Later
by mrkgnao on Monday July 31, 2017 @11:32AM
(#14892902)
I can imagine :) I think over in Rust-land it's something like
isn't it?
[ Parent
| on HN ]
Re:Elm in Production: 25K Lines Later
by steveklabnik on Monday July 31, 2017 @11:39AM
(#14892961)
#[derive(Serialize, Deserialize)]
but yeah, same difference.Ah. That derives both "ToJSON" and "FromJSON", as Aeson calls them. Cool!
Re:Elm in Production: 25K Lines Later
by steveklabnik on Monday July 31, 2017 @12:54PM
(#14893691)
Yeah, and it's actually more general than that: it describes how to serialize and deserialize them generally, so you could use, say, serde_json to get json, or serde_yaml to get yaml.