On Wed, Sep 30, 2020 at 10:51 AM Kevin Chadwick <m8il1i...@gmail.com> wrote:
> I feel like a few of these should probably be exposed in the net package? > Some are. The point behind the new errors package is that the rest don't need to :) Perhaps they haven't because different systems return different ones in > different circumstances, but I hope Posix means that isn't the case. > Not all platforms Go runs on are Posix. Plan 9 comes to mind, but also webassembly and embedded devices. I think in general, trying to replicate these underlying errors is not a good idea. They are very platform-dependent and how to handle them and which errors are "interesting" classes is really application-dependent (for example, I have never introspected an error returned by the net package, so far). The current approach of passing them through mostly untouched still allows the application to make any decision it wants based on them - and that's where the necessary information is anyway. > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/091726ef-29c6-31f1-f128-b2a15ebea26a%40gmail.com > . > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAEkBMfFNBcHTGfa1EfmRfq%3D-iY45h6erZPuOTcH7t0d6aOt%3DuA%40mail.gmail.com.