Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
CamouflagedKiwi
on Feb 4, 2022
|
parent
|
context
|
favorite
| on:
What I'd like to see in Go 2.0
What you describe for JSON is already the case in Go; the stdlib json parser does simply throw out any extra fields on deserialisation.
morelisp
on Feb 4, 2022
[–]
In fact it's difficult-to-impossible to get the opposite (only json.Decoder supports a strict mode, and as soon as one intermediate type implements UnmarshalJSON it stops getting propagated).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: