trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: January 2015

Re: [trinity-devel] Codebase formatting discussion

From: Michele Calgaro <michele.calgaro@...>
Date: Sun, 18 Jan 2015 00:54:13 +0900
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 01/17/2015 11:52 PM, Slávek Banko wrote:
> By the way, in my usual style I'm used to indent brackets also in conditions, which from my perspective clarifies
> their nesting. For example:
> 
> if (a == 3 && (b == 5 || c == 4 || (d == 10 && e == 20)) && (f == 15 || g == 25)) { }
> 
> if (a == 3 && (b == 5 || c == 4 || (d == 10 && e == 20)) && (f == 15 || g == 25)) { }
Good idea, makes the code easier to read.
Cheers
  Michele
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJUuoWkAAoJECp1t8qK3tXPXkoP/jcJMGG9oAb2/zVq1FhnuOu6
C2cjfcCtjrz1NLMiJFd43L8DHjOm1Hn3kDpys7NrtewSbc3NBsg9BD95g81J4T/K
BBqdqlIsSWlpjNlv/eb/ScX+ToTdjXvX/wCSIP91FY4EP/i4oZzdIDVWBVZT9wRR
a+nC+EFFvihxMPUs7Ne7BQrPVNynXemtXhT9l2fiQxy8sMqjHTw9RS5rGZ7CP74G
WCHOQWJxUdwm+BVVPxvBUjtNw0RJeEMT7ue6wDhUDQVCGWlzOkj2NVb7IRij6x3l
nu+OAn1YV+jmT8nZA1oPbRTdbWuMEnQyCHg8wLLoMoJ8Ho7N9Zi+9aMfFLHoecfa
1QljnBxagZhg0Y7D1WouH173ZOBvgCwkUfnZa8qkN6Uu8vhoWe2KcEfwYov/s6RN
wx91SgL5XXEhvNW724BjcjOVu3fgzxkeG26AddqLYOr2TsvocN8XYSu6W1AnzCkJ
rwsy5YYQd1GwqWGnayD57quYOGN17G8yQ5F2frMGfzE2mcRgStt4+vXexYXasN2l
oiL+g7+TgTlTsVU8dMX4FnvVCApUYVtB/Heho8NeOaekd2lUh+UrWFra0znAH6Qi
cG9P7Dp5Z2DVv8NokaldeNs6yFHcJ2WfnUmzC2kCgS8egG85fCRs7TQWgvzyDZIu
as5Op7igkUc3WZqlhqdU
=FJgl
-----END PGP SIGNATURE-----