exconstructor
exconstructor copied to clipboard
Feature request: produce (or deconstruct)
It would be a useful extension to be able to produce maps with keys cased in one specific flavour.
One example use would be to produce Javascript-style camelCase API responses while maintaining structs and maps internally in snake_case.
If this sounds like a reasonable extension to the maintainers I'd prepare a PR.
Hm, I could see this being pretty useful. I'd probably include it as an extra module, rather than having it brought in by the __using__ macro by default, but this sounds like a good feature.