News for hackers. Stuff that matters.
Re:The Go Programming Language, or: Why all C-like languages... by canop_fr on Friday March 09, 2012 @07:46AM (#3683845)
About this point :

> What's even better: you can put labels on your nested loops and break out of multiple levels using them. Finally!

This is possible in other languages, too, even if it's a little known fact.

For example in java :

    ext: for (int i=0; i<4; i++) {
        System.out.println("ext "+i);
        for (int j=0; j<4; j++) {
            System.out.println(" in "+j);
            if (j==2) break ext;
        }
    }

There are no comments on this comment yet.