3 ms·
Using pointers just to get a 'null' is just an annoying hack reflective of poor design. Instead, "no value" should be able to be directly represented.
by madeofpalk 3y ago
Using pointers just to get a 'null' is just an annoying hack reflective of poor design. Instead, "no value" should be able to be directly represented.
- Cthulhu_ 3y agoIn Go that's the zero value, which is usually things like empty string, 0, [], etc; in most cases that's good enough.