Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Critique on comment syntax and suggestions
From
"Mason, Bryce" <[email protected]>
To
"[email protected]" <[email protected]>
Subject
st: Critique on comment syntax and suggestions
Date
Fri, 28 Jan 2011 09:20:52 -0800
Listers,
Although not a question, thought this might be of interest as a "gotcha."
I was stymied by poor commenting practice but also by STATA's inflexible color coding of comments. Consider the following:
# delimit ;
* This next line won't get processed because I forgot to put a semicolon
drop if criticalvar=1;
Unfortunately, STATA's do-file editor inappropriately colors the line with the drop command as if it will be processed, even though the delimiter was not applied to the comment line. It would be great if the do-file editor knew that we were using a semicolon and made that whole section green until it encountered a semicolon, but I do not see this being easily implemented.
We will be moving our standard commenting practice to /* and */ in order to avoid this issue.
Hope it Helps,
Bryce
Bryce Mason, Ph.D.
Director of Institutional Research
Loyola Marymount University
1 LMU Drive, Suite 4820
Los Angeles, CA 90045-2659
e: [email protected]<mailto:[email protected]>
w: (310) 258-8838
f: (310) 338-1841
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/