4 ms·
Very interesting! I program a lot in Go, and while I have my complaints about the language, I find the CSP model to be very easy to work with. I'd recommend ad
by openasocket 3y ago
Very interesting! I program a lot in Go, and while I have my complaints about the language, I find the CSP model to be very easy to work with.
I'd recommend adding some additional documentation about the API. You mention trying to keep dynamic allocations to a minimum (which I like to hear) but it would be handy to have documentation stating which functions allocate and how much they allocate. Actually, more documentation in general would be nice, particular relating to edge cases. In Go I know that sending to a closed channel will panic, for example. But what will your library do? Return some sort of error message? Silently drop the message? Segfault? Definitely something you want prominently documented. Especially anything that could potentially segfault should be highlighted.
Oh, and some benchmarks would be very interesting!
- xyproto 3y agoWhat are your complaints about the Go language that is better in C89?