3 ms·
Your example is super helpful for focusing the discussion, so firstly, thank you for taking the time. My immediate thoughts are: - This is rather specific. N
by omginternets 5y ago
Your example is super helpful for focusing the discussion, so firstly, thank you for taking the time.
My immediate thoughts are:
- This is rather specific. Not all programs should be using complex thread-safe data-structures. Rather, the primitives are in place to build such things, and libraries can be imported etc.
- These more sophisticated data-structures have runtime costs that are a bit less straightforward to understand as compared to arrays. They require either (a) programmers to be aware of the edge cases or (b) a higher-level language where programmers relinquish some control over runtime performance. To be clear, I personally enjoy many such languages.
Overall, your criticism is equivalent to saying "Go is too low-level". That may well be the case for many applications, but that remains to be argued more precisely.