> I thought that we had agreed to always use braces for control structures
> (for, if, while, etc.) since that makes it easier to add/remove lines
> without worrying about adding/removing braces too.  I don't see it mentioned
> either way on the coding style page, but I know I've developed the habit of
> using braces unconditionally based on my recollection of that decision.
oh, I thought the agreement was that you use braces if there is an
else, but if it's just a simple two liner, you don't have to.

> I don't really have a strong opinion either way; the #1 thing is that we
> should agree and get it down on the wiki page so that these style updates
> converge rather than oscillating.
Agreed.  What do you think about my above statement?  If the whole
expression fits in two lines, no braces required.  More than two
requires braces.

  Nate
_______________________________________________
m5-dev mailing list
m5-dev@m5sim.org
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to