News for hackers. Stuff that matters.
Re:Go: The Good, the Bad and the Ugly by zamalek on Friday April 13, 2018 @01:30PM (#16832069)
> Speaking of magic, json tags are weird stringy magic only used at runtime via reflection.

Yeah, that is pretty awful. I'm a big fan of strongly-typed attributes (having come from C#).

> '#[serde(rename_all = "camelCase")]'

That's 99% perfect because the locality of the schema contract is near the field.

I mostly have contention with using a global settings singleton (or similar) as a configuration store for this stuff as a good example. With examples like yours, my comment wouldn't have been posted.

There are no comments on this comment yet.