Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🤔 #10

Open
EltonZhong opened this issue Dec 6, 2018 · 1 comment
Open

🤔 #10

EltonZhong opened this issue Dec 6, 2018 · 1 comment

Comments

@EltonZhong
Copy link

Kotlin 没有生成注释的快捷键可能是有原因的, 这是by design
Clean code 书里讲到:多余的注释不如没注释。
在Kotlin 的设计里, 对于

fun sum(a, b)

Get sum of [a] and [b] (或者没有注释) 是比下面的注释更直观的:
/**

@zxj5470
Copy link
Owner

zxj5470 commented Dec 7, 2018

这完全是JB愿不愿意做的事……在IDE里面文档的 popup【对着函数名按 ctrl+Q (mac ctrl+J)】你可以看到他自己都不符合自己的规范,只能说明那些人的关注重心根本不在这里。要是真的不需要注释,JB干嘛还在语言里面专门讲文档注释怎么写。(property和 sample 能format出来算我输)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants