Are arrays of maps a bad idea? Someone posted a pom.xml file pointing out how horrible it was, and I thought to myself "How would this look in toml?"
I was all set to try a translation when I hit this section:
com.google.apis
google-api-services-drive
v2-rev53-1.13.2-beta
com.google.apis
google-api-services-plus
v1-rev22-1.8.0-beta
com.google.api-client
google-api-client
1.13.2-beta
com.google.api-client
google-api-client-servlet
1.13.1-beta
How would I represent this in TOML?
[dependancy1]
groupId = "com.google.api-client"
artifactId = "google-api-client"
version = "1.13.2-beta"
[dependancy2]
groupId = "com.google.api-client"
artifactId = "google-api-client-servlet"
version = "1.13.1-beta"
That's not right, it clearly should be an array, but I don't think the standard supports it. At best I would think you'd have to use parallel arrays
[dependencies]
groupIds = ["com.google.api-client", "com.google.api-client"]
artifactIds = ["google-api-client" , "google-api-client-servlet"]
versions = ["1.13.2-beta" , "1.13.1-beta"]
and that's just not pretty.