【发布时间】:2020-12-30 12:46:40
【问题描述】:
我通过 https://google.github.io/styleguide/jsguide.html#formatting-comments 了解 Google 为其开发人员设置的样式指南。
Google 接受以下样式:
/*
* This is
* okay.
*/
// And so
// is this.
/* This is fine, too. */
但有趣的是,谷歌提到了Do not use JSDoc (/** … */) for implementation comments.
我在过去的项目中一直使用 JSDOC 样式。
知道为什么不推荐吗?
【问题讨论】: