Changeset 2474
- Timestamp:
- Nov 24, 2004, 4:23:35 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/doc/misc/perlCodeConventions.tex (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/misc/perlCodeConventions.tex
r2471 r2474 1 %%% $Id: perlCodeConventions.tex,v 1.3 5 2004-11-25 02:02:33jhoblitt Exp $1 %%% $Id: perlCodeConventions.tex,v 1.36 2004-11-25 02:23:35 jhoblitt Exp $ 2 2 \documentclass[panstarrs]{panstarrs} 3 3 … … 348 348 349 349 Comments should not be used to comment out large sections of code. When 350 deactivating 2 or fewer lines of code a double hash (\code{##}) should be used351 at the very beginning of the line(s).350 deactivating 2 or fewer consecutive lines of code a double hash (\code{##}) 351 should be used at the very beginning of the line(s). 352 352 353 353 Example of deactivating a single line code. … … 361 361 When deactivating 3 or more lines of code an \code{if} statement should be used 362 362 with a false boolean value. The opening and closing of the \code{if} statement 363 must be at the very beginning of the line. 363 should be nest to the same depth as the surrounding code and the deactivated 364 section should be indented. 364 365 365 366 Example of deactivating multiple lines of code. … … 442 443 } 443 444 \end{verbatim} 445 446 \emph{\code{perltidy} is incapable of formatting trailing comments in this 447 style. It will force trailing comments to be 4 spaces to the right of the last 448 character in any statement on the line. However, it will add additional spaces 449 to cause trailing comments in adjoining lines to be vertically aligned. Until 450 such time as \code{perltidy} can following this convention or a replacement 451 tool is located, code as formatted by \code{perltidy} will be considered 452 acceptable.} 444 453 445 454 \subsection{API Comments}
Note:
See TracChangeset
for help on using the changeset viewer.
