Re: [Vala] Small syntax request labeled loops



On Wed, 2008-07-02 at 10:20 +0300, Arto Karppinen wrote:

Why not do it sh(1) style? (continue 2, break 2).


I would say that the perl style is a lot clearer about what happens.

If you have a lot of loops inside one another, it needs some figuring 
out which loops happens to be number 2 at any given point.

I agree that the Perl style is clearer, however, I currently don't
intend to add either to Vala, as both will make the code harder to read,
and I don't see sufficient need for this functionality.

If you have complex nested loops you might want to consider using helper
methods, this usually makes the code a lot clearer.

Jürg




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]