News for hackers. Stuff that matters.
Re:Strong typing, a hill I'm willing to die on by manicennui on Wednesday October 04, 2023 @02:22PM (#37769440)
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.
Re:Strong typing, a hill I'm willing to die on by mcesch on Wednesday October 04, 2023 @05:23PM (#37771998)
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.