4 ms·
I very much dislike import side effects in any language. Im a lot happier where thing.Register() is still forced to happen in the main function. Still, I can u
by flakes 3y ago
I very much dislike import side effects in any language. Im a lot happier where thing.Register() is still forced to happen in the main function.
Still, I can understand it for some components like loggers to not add boiler plate to every library. However, I was very uneasy to see that enabling gzip decompression in a gRPC server is done through a magic _ import. You have to initialize the server anyways, so why not just make it an explicit function argument?
- deleted 3y ago[deleted]