5 ms·
Go's JSON parser ignores fields that aren't present in the destination type, so the addition of new parameters shouldn't be a problem.
by ericwaller 12y ago
Go's JSON parser ignores fields that aren't present in the destination type, so the addition of new parameters shouldn't be a problem.
- masklinn 12y agoAFAIK GSON (which stripe-java users) also ignores fields which are not present in the destination type, but the original post was about parameters so that's not even relevant: deserialisation would only be relevant for responses.
- rsanders 12y agoI believe the issue is that new parameters wouldn't be accessible without a library update.
- djur 12y agoMy sense is that the Go developer culture is a lot more open to frequently updating their dependencies than the Java developer culture. Fetching dependencies from git is built into Go, after all.