Larry Wall writes:
: Dave Mitchell writes:
: : | anyone know precisely what the following means?
: : 
: : "K&R" style for indenting control constructs
: 
: Strictly speaking, it means you always put the opening bracket on the
: same line as the keyword, and only worry about lining up the closing
: bracket:

That's funny, my examples disappeared, leaving only a colon.  Here:

    mumble (natter, gromish) {
        ...
    }

I then went on to point out that if there are multiple lines in the
front matter, I like to line up the first bracket as well:

    mumble (natter, gromish,
        natter, gromish,
        natter, gromish,
        natter, gromish)
    {
        ...
    }

Larry

Reply via email to