3 ms·
All languages have these problems. Even Go with famously excellent std has many rough spots that either were not available (such as context) or was just a bit p
by klabb3 2y ago
All languages have these problems. Even Go with famously excellent std has many rough spots that either were not available (such as context) or was just a bit poorly designed.
The most important job of std is not (contrary to popular belief) to provide a “bag of useful high quality things” but rather providing interfaces and types that 3p packages can use without coordinating with each other. I’d argue that http.Handler, io.Reader/Writer/Closer are providing the most value and they are just single method signatures.
When there’s universal agreement of what shape different common “things” have, it unlocks interop which just turbo charges the whole ecosystem. Some of those are language, but a lot more is std and that’s why I always rant about people over focusing on languages.
- flohofwoe 2y agoAlso tbf, even in its current state the Zig stdlib is already infinitely more useful than the C stdlib and even the C++ stdlib.