Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: undocumented command *


From   "Sergiy Radyakin" <serjradyakin@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: undocumented command *
Date   Fri, 26 Sep 2008 21:12:52 -0400

On Fri, Sep 26, 2008 at 6:31 PM, Steven Samuels
<sjhsamuels@earthlink.net> wrote:
> On Sep 26, 2008, at 5:48 PM, Gabi Huiber wrote:
>>
>> Right, * is a comment marker, but should it be used?
>>
>
>
>
> "*" is great for creating boxes, to me the most readable way to display
> comments.
>
>      ********************************
>      *          Here Is             *
>      *           A Box              *
>      ********************************
>
> The alternative "/*" and "*/"  can also set off comments with boxes.  But if
> I introduce a space between the two symbols (or if an email program does
> it),  code will fail.   "*" doesn't have this problem.
>
> -Steve

If Steve or his email program introduces a space between any two
symbols of any Stata's commands or identifiers, the code will also
fail, but this is not an argument to switch to one-letter commands and
one-letter identifiers.


Besides,

///////////////////////////////////////////////////////
//        This is also a catchy box      //
//////////////////////////////////////////////////////

however Stata fails in the files with ; used as the line-terminator
and // in the first position in the line. So IMHO this is more
important to fix, then forbid using * as a comment marker.

Best regards,
   Sergiy Radyakin
*
*   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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index