为什么Go语言不支持重载?

上图是Golang官网FAQ的部分截图,看来关于Go不支持重载的这个问题困扰了很多从面向对象语言转到Go的开发者。官方在这里做出了解答。 在上面的回答中有这样一句话: Experience with other languages told us that having a variety of methods with the same name but different signatures
相关文章
相关标签/搜索