C
C
calculator2122021-01-20 09:20:26
go
calculator212, 2021-01-20 09:20:26

Does it make sense for go to remove the ioutil package?

Recently I read the news that the ioutil package is going to be removed https://www.srcbeat.com/2021/01/golang-ioutil-depr... , they write

spoiler
io/ioutil, like most things with util in the name, has turned out to be a poorly defined and hard to understand collection of things.
, but it doesn't seem like there's much point in doing this, given that the package is small and the code there is quite understandable, and I wanted to know what is the point of this removal?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-01-20
@calculator212

The util suffix does not add any value to the name at all => the package name does not give any idea what to look for in this package.
Therefore, we decided to transfer the code from it to other packages.
Well, ioutil itself is not deleted, but proto declared deprecated

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question