[bind10-dev] a bikeshed style question: parenthesize return values?
mgraff at isc.org
Tue Jun 22 20:33:27 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
When I started at ISC, parens was what Vixie demanded on for returns.
There are other situations as well, like you should use:
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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
More information about the bind10-dev