couchbaselabs/couchstore — Issue #4: Style cleanups
Author: dustin
Created: 2012-03-05 20:11:22+00:00
State: open

I'd like to get the code consistent with other C++ code (ep-engine basically uses cc-mode out of the box).

This is generally minor, but one thing I do think is quite important is adding lots of curly braces. Optional curly braces are as evil as optional semicolons. Once you start putting the opening sem on the same line as the thing it's opening, you don't worry so much about wasting lines with them. :)

I think we can simplify a lot of things with some more C++ idioms as well (primarily around making sure things are guaranteed to be cleaned up).