Re: Breaking the silence

new topic     » goto parent     » topic index » view thread      » older message » newer message

CChris wrote:
> 
> Jeremy Cowgar wrote:
> > I think retry should be put into the language, however, for labeling, I
> > really
> > do like the idea of:
> > ...
> I have no religion on this. I simply wonder whether a label clause at the end
> of a long text line that doesn't wrap is clearer than a plain label statement,
> indented like the block header that follows, since it it would be yet another
> statement. It would be ignored if not followed by a block header - so far -,
> so retry is not a goto, even with a label.
> 
> But again, I have nothing against either. What about allowing both forms? The
> separate label statement has been valid at some point in Æ, and I turned to
> a label clause instead for ease of implementation only. This shows how much
> the distinction matters to me.

I think that's a good point about the label not standing out, particularly if it
is at the end of a very long line.

I don't know if it is bad practise to put so many conditional tests in a loop
condition test but it is the way I tend to work in Euphoria, rapidly, and
Euphoria greatly reduces the chances that you are accidentally assigning, or
incrementing, or looking at the wrong pointer, or not dereferencing the array
reference instead of the array index etc etc in any of the tests, that I am
comfortable doing that.

However, if you see a 'retry label' later in the code it probably won't take
that much effort to track down which loop it is referring to.

Gary

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu