<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-2" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I agree with Dmitry on that matter. The brackets are bad. They only
hide possible bugs. I don't see any advantage. They don't add anything
for the compiler nor do they add anything to readability. IMO it's
easier to read with less braces.<br>
<br>
Timo<br>
<br>
Aleksey Bragin schrieb:
<blockquote cite="mid:11F58486-FCD7-4D98-9DFD-AE71EE9B5CA9@reactos.org"
 type="cite">
  <pre wrap="">Good, let's discuss it developers-wide then, and add a result into  
the (to become official) Coding Style Guidelines for kernel-mode code.
The only thing I'm bothered with is to keep the style consistent  
across kernel (and drivers, where possible). And right now bracing  
arguments of &amp;&amp; and || prevails.

I'm eager to listen to other dev's opinion on that topic. You just  
showed one disadvantage of such method. Are there any advantages?


WBR,
Aleksey.

On Feb 16, 2009, at 8:47 PM, Dmitry Gorbachev wrote:

  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">No, it's just a matter of coding style used in the kernel.
      </pre>
    </blockquote>
    <pre wrap="">What is a logical basis for adopting this particular rule?  
Sometimes it is
not just a matter of preference.

These parentheses are unnecessary for humans, and if they are not  
needed for
compilers or some other tools, they are bad! Without them, the bug  
could be
noticed earlier.

Cheers,
Dmitry
    </pre>
  </blockquote>
  <pre wrap=""><!---->
_______________________________________________
Ros-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Ros-dev@reactos.org">Ros-dev@reactos.org</a>
<a class="moz-txt-link-freetext" href="http://www.reactos.org/mailman/listinfo/ros-dev">http://www.reactos.org/mailman/listinfo/ros-dev</a>

  </pre>
</blockquote>
<br>
</body>
</html>