Hacker News new | ask | show | jobs
by NotAnOtter 357 days ago
If one wished, could they do something like

`save adults to "adults.json" as XML`

The expected output would be a file with the name "adults.json" containing XML data. I don't see much benefit in this specific use case but I do have a 'code smell' in having the language automagically determine the output structure for me.