Nick Winter
> > ... my advice is _never_ to place any text on a line after
> > a left brace { in a loop. Always start a new
> > line.
> >
>
> Still and all, presumably Stata
> should at
> least respond with an error message, rather than exiting completely.
> (Behavio(u)r I just confirmed.)
Agreed.
> I'll note also that -if <condition> { do something }- works and is
> commonly used in both user and Stata-written code...
Indeed, including my own programs, until recently.
But my strong impression, fuelled by comments from
Stata developers, is that Stata has to
work very hard to let you do that in your code.
This is what I was curious about. All of the discussion on syntax/style is
fine - I think you'd find my code to be written as you prefer - it was just
a strange occurrence as I often will enter these loops in the command line
manually and I never thought it was a problem.