3 ms·
> Being able to swap out the regex, datetime, arg parsing and encoding are a feature A feature present on every language that has those in the stdlib.
by whstl 1y ago
> Being able to swap out the regex, datetime, arg parsing and encoding are a feature
A feature present on every language that has those in the stdlib.
- mplanchard 1y agoNot necessarily, when other components of the stdlib depend on them
- whstl 1y agoAlso not necessarily with third-party libraries.
- mplanchard 1y agoTrue! Although it’s easier to swap out a third party lib that’s using a bloated dependency than it is to avoid something in std.
- okanat 1y agoIndeed. However, you need to recognize that having those features in stdlib creates a huge bias against swapping them out. How many people in Java actually uses alternative DB APIs than JDBC? How many alternative encoding libraries are out there for JSON in Go? How about async runtimes, can you replace that in Go easily?