1

Go 语言和 Java 接口的优缺点分别是什么呢?

 1 year ago
source link: https://www.v2ex.com/t/860607
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  问与答

Go 语言和 Java 接口的优缺点分别是什么呢?

  Elaina · 3 小时 54 分钟前 · 497 次点击

Go 等语言采用的是隐式声明,而 Java 等语言采用的是显示声明,这两种不同的声明在大型业务开发中有哪些优缺点呢?实际上哪种在业务开发中才是最好用的呢?

3 条回复    2022-06-19 10:27:12 +08:00
sadfQED2

sadfQED2      3 小时 2 分钟前 via Android   ❤️ 2

个人喜欢 java 的风格,go 语言碰瓷似的,永远不知道你实现了哪些接口
ToBeHacker

ToBeHacker      2 小时 30 分钟前

没有哪种最好,够用就行了。Java 算是传统的 oo 语言,核心优势在于 IO 与 goroutine
lhx2008

lhx2008      2 小时 24 分钟前 via Android

有了 ide 的话,go 的更好,接口可以更小而且可以组合

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK