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

示例代码有违前面的代码规范 #142

Open
fei3fei opened this issue Apr 25, 2024 · 3 comments
Open

示例代码有违前面的代码规范 #142

fei3fei opened this issue Apr 25, 2024 · 3 comments

Comments

@fei3fei
Copy link

fei3fei commented Apr 25, 2024

大佬好,
首先,感谢大佬的分享,[鞠躬]!

本人在阅读的过程中发现了一点不算问题的小问题(代码规范),描述如下,

代码规范中提到:

函数的参数列表中,默认值等号两边不要添加空格

但是在函数的参数等地方与上述规范相悖。

代码规范中亦提到:

左括号之后,右括号之前不要加多余的空格

但是在函数的参数函数传值问题等地方的示例代码有违上述规范。

还有多个参数之间的逗号前不加空格等规范。

代码规范是对不同写法的统一,也是在实践中总结出来的最佳实践。

@mrzhanggit
Copy link

mrzhanggit commented Apr 25, 2024 via email

@999999VVV
Copy link

999999VVV commented Apr 25, 2024 via email

@kbzyjp
Copy link

kbzyjp commented Apr 25, 2024 via email

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

4 participants