是否可以发表评论 [英] Is it possible to comment comments

查看:68
本文介绍了是否可以发表评论的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

发表评论时给您带来不便。但是我想知道你们将如何做到这一点。假设您有以下代码:

I'm having this inconvenience while commenting. But I was wondering how you guys would do this. Lets say you have the following code:

/*Fancy function*/
function fancyFunction(){
 echo "Oh yeah"
 //200 more lines go here
}

现在我要注释整个函数,您将执行以下操作:

And now I want to comment the whole function, you'll do this:

/*

/*Fancy function*/             <--Comment breaks here
function fancyFunction(){
 echo "Oh yeah"
 //200 more lines go here
}
*/

您如何做到这一点xD

How do you do this xD

推荐答案

注释旨在为您的代码提供注释。通过阅读代码本身,可以告诉您和其他开发人员决策背后的原因或不明显的其他原因的系统。

Commenting is meant to give you comments for your code. A system to tell you and other developers the reasoning behind decisions or anything else not obvious by reading the code itself.

您最好的选择是删除有问题的代码。如果要使用版本控制(应该这样做),则永远不会丢失代码。

Your best bet would be to remove the code in question. If you are using version control (and you should), you will never lose the code.

这篇关于是否可以发表评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆