davecgh / go-spew

Implements a deep pretty printer for Go data structures to aid in debugging
ISC License
5.98k stars 361 forks source link

Deprecate "disableunsafe" tag in favor of "safe". #52

Closed davecgh closed 7 years ago

davecgh commented 7 years ago

This adds a new build tag named safe which serves the exact same purpose as the current disableunsafe tag. This is being done, as recommended by @shurcooL, since it is emerging as the standard way to do it in several high profile packages, it mirrors the unsafe package nicely, it is shorter, and users generally seem to prefer it.

However, to avoid breaking existing infrastructure, the disableunsafe tag is still available and simply is being deprecated.

davecgh commented 7 years ago

I updated this to deprecate the disableunsafe tag instead of just replacing it in order to avoid breaking existing infrastructure.