I experimented with such a C style once, years ago; it was perfectly workable in Vim.
The opening curly brace is better like this:
int double(int x)
{ x += 3;
return x * 2; }
I found it's good to have spaces within the braces, including when closing them:
int double(int x, int b)
{ if (b)
{ x += 3;
return x * 2; }
else
{ x -= 3;
return x * 4; } }
This naturally jives with a two space indentation, so everything is pleasingly copacetic. I feel I could easiy maintain a 200KLOC code base in this style.
Oh, incidentallly, this style is followed in the production rule action bodies of the TXR yacc file parser.y:
http://www.kylheku.com/cgit/txr/tree/parser.y
I wonder how well GCC's newer "misleading indentation warnings" handle this, though.
> C-like languages because of how few people use something like Smartparens or Paredit
However, everyone in C (or C-like) programming with two brain-cells to rub together uses at least auto-indention and brace/bracket/paren matching features in their editor. A stock installation of Vim turns some of it on by default if you open anything with a given suffix like .c or .js.
These editing features work equally well regardless of how you lay out the braces.