/*/ comment here
do some thing.
/*/
do some thing.
//*/
Why people write code like that? Is this a good practice?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s usually only used when testing something out for the moment. That is, you should never commit code like that to version control, because it can be confusing.
For example, if you are testing two different computation methods, you can use this to switch between them. Personally I have rarely done this, if at all.
For those that don’t know, you can toggle between the two code sections by adding one forward slash: