+ 6

Using comments after }

There are several closing brackets that we have at the end of the code. Sometimes it cause the mistakes if you forget one or set additional one. May be the good way is write comments after closing bracket which describe what it closed? For example: }//for }//myfunc }//myclass} }//namespace

12th Dec 2017, 3:56 AM
Nick Sh
Nick Sh - avatar
2 Respostas
+ 3
I did that too when I started to learn Java. Evidence: https://code.sololearn.com/cE8Ncr7jB5uc/?ref=app
12th Dec 2017, 5:52 AM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 2
I've been doing what you are suggesting since 1977.
12th Dec 2017, 4:12 AM
John Wells
John Wells - avatar