Hi,

I know this might seem like little too late to ask this question but I am 
learning go and I found out that go compiler will error if there are unused 
imports present in the code.

One of the reasons I found is to eliminate pulling unused code and reducing 
binary size. This doesn't really look like an answer since if compiler 
knows something is unused it can simple `not` pull it.

Other reason I came around is to help with some bugs that arise from unused 
imports. This also i feel is not a reason enough to building something in 
the language itself. Atleast I have not encountered nor have i seen anyone 
run into bugs due to unused imports.

So I wanted to understand the reasoning behind this decision for golang.

Thanks

-- 
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/c8643bc1-507a-4791-bdf6-46436298393an%40googlegroups.com.

Reply via email to