Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
manicennui
· 3y ago · 0 comments
This seems to be a common practice in Go and I've seen it cause requests to be rejected because one unimportant field is wrong. Were we to do this for truly important requests, like lead traffic from third parties, we would lose a lot of business.
Comments
[–]
mcesch
3y ago
If the field is unimportant you'd represent it as such. `Option` or `Maybe` or whatever the equivalent wrapper is in your language of choice.