[TxMt] Re: TM2: strange indenting for C++

Allan Odgaard mailinglist at textmate.org
Tue Feb 14 10:38:26 UTC 2012


On 01/02/2012, at 04.38, Steve King wrote:

>> […]
> If it's a choice between supporting code like your example or supporting a single statement split across lines, I say focus on the multi-line statement. Anyone who writes deeply nested C (or C-like) code without braces needs to be whacked upside the head with a cluestick, not encouraged by their editor.

Well, the choice is more like, supporting well-defined nesting following (somewhat) deterministic rules that can be expressed via TextMate’s system versus adding a full C++ parser and a zillion options about preferences about how multi-line statements should be split, indented, and aligned ;)

> In fact, I'd pay ten times as much if TextMate could be made to deliver a high-voltage electric shock to anyone who tried writing such an abomination!

The code example I gave may arise as a temporary state before having added braces, after removing some, or similar.




More information about the textmate mailing list