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

Michael Graff mgraff at isc.org
Tue Jun 22 20:33:27 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

When I started at ISC, parens was what Vixie demanded on for returns.
There are other situations as well, like you should use:

  sizeof(foo)

rather than

  sizeof foo

even though both work.  The idea is that depending on what foo is, you
sometimes need parens and sometimes not.  It makes it look like a function.

I think the same idea was for return -- make it look like a function call.

I don't have a strong personal preference, but after 10+ years of ()s
around return values, I think we should stick with it.  BIND 9 won't
change, and it will just add confusion if BIND 9 doesn't match BIND 10 here.

- --Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwhHhcACgkQ+NNi0s9NRJ2l6wCfRDQ9we0UCUIForJ0D8i8YfzK
8fsAoKq/3p8ts+7GvKsl9a1hyNBE54jz
=5QFk
-----END PGP SIGNATURE-----



More information about the bind10-dev mailing list