in reply to Commented braces in Code

One really wonders what could be the use or purpose of those commented out braces?

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^2: Commented braces in Code
by sanPerl (Friar) on Sep 12, 2007 at 07:59 UTC
    This is just a code given for the sake of presentation to PerlMonks site. The actual code is 50k lines long. When we write a big code and that too in a collaborative developement envirinment then some programmers comments some statements to help them debugging it future. Sometimes the code written in the past is saved in comments to understand the origin of the latest modification. Some times the Comments are too descriptive which includes '{' as a part of text
    Whether one likes it or Not This all happens in real world.
    I found this problem while debugging a big code for the said error and I posted this query to Perlmonks.
    This is a good problem from coding guidelines point of view, and I have communicated this issue to all my programmers and I have also updated Coding guidelines document
    I hope Monks would concentrate on technicality of the issue rather than practical usage. in real world we need to use all kinds of permitation and combination to get the work done through programming, hence knowledge of such exceptions is very important