Juerd wrote:

Juerd skribis 2005-05-06 18:24 (+0200):

| AVAILABLE any()


We can use this for labels:

    |foo| for ... {
        while ... {
            ...;
            next foo if ...;
        }
    }

It'll confuse the heck out of Ruby coders, but I do like this syntax. It
makes labels stand out, as was one of the requirements, and it puts a
little less strain on the colon.

(Now, if we really want to bug Rubyfolk, we could make labels per block
instead of per statement, and put them inside the curlies:

    for ... { |foo|
        while ... {
            ...;
            next foo if ...;
        }
    }

*evil grin*)

Actually if we define |...| at all, I'd prefer it mean abs(), its usual mathmatical meaning.



-- [EMAIL PROTECTED] [EMAIL PROTECTED]

Reply via email to