4 ms·
One thing I hated about working with Go. POSTed JSON bodies missing a field could not be distinguished from those where that field pointed was present and point
by 1-more 4y ago
One thing I hated about working with Go. POSTed JSON bodies missing a field could not be distinguished from those where that field pointed was present and pointed to the empty value for that (an empty array or string or something). This may be entirely work-around-able and simply a failure of how that job worked, but it was a whole thing.
- Laremere 4y agoIn this case, instead of, say, an int, you could have the field be a pointer to an int.
- manicennui 4y agoAnd now you've traded one problem for another.