[bind10-dev] a bikeshed style question: parenthesize return values?

Shane Kerr shane at isc.org
Wed Jun 23 13:51:42 UTC 2010


On Wed, 2010-06-23 at 12:15 +0000, Francis Dupont wrote:
> IMHO when the returned expression is very simple or a single value
> the parenthesis are useless so should be omitted according to the
> principle of laziness. BTW it seems to be the only case where
> parenthesis can be omitted (:-)?

The "case" keyword also omits it:

    switch (foo) {
        case 13:
        case (42):

And "goto" forbids it:

    goto bar;


More information about the bind10-dev mailing list