On 6/24/13 8:55 PM, Marcus Brubaker wrote:
> continue and break would be useful, but I'm hesitant to support adding goto because it's just bad practice, particularly
> in a language as high level as Stan. Goto would also require that we add annotations to the langue, to mark locations
> to which to go.
That's my feeling, too. Unlikely anyone's going to need
to implement a crazy enough algorithm that they need goto (though
it can be useful).
I'll drop these onto the to do list. Shouldn't be hard to add
at all as they'll translate directly into C++. I've seen a lot
of inexperienced programmers get confused about the scope of
break and continue relative to conditionals, but then it's unlikely
most of our users are going to use them anyway.
- Bob