Open jamiebrynes7 opened 5 years ago
There's a nifty crate for making this easy to do, would allow us to write less code generation on our end: https://github.com/nrc/derive-new
Hmmm - I wonder if its worth pulling in (and likely re-exporting) a dependency when it should be fairly trivial codegen to write?
Currently, the only way to create generated types is to use the object initializer syntax (or at least that's what its called in C#). Instead, we should provide a constructor as well to cut down the verbosity.
Currently we have:
where we could have: