exconstructor icon indicating copy to clipboard operation
exconstructor copied to clipboard

Feature request: produce (or deconstruct)

Open febeling opened this issue 8 years ago • 2 comments

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.

febeling avatar Oct 31 '17 20:10 febeling

If this sounds like a reasonable extension to the maintainers I'd prepare a PR.

febeling avatar Oct 31 '17 20:10 febeling

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.

gamache avatar Nov 08 '17 15:11 gamache