textwrapping - Convention for wrapping code lines? -


I usually wrap my code lines so that they are 80 characters long.

Which rapping looks better for you?

  // (a) std :: vector & lt; MyLongClassName :: size_type & gt; * Myvector = new std :: vector & lt; MyLongClassName :: size_type & gt; (); Bool isOneOrAnother = Here is the Ezhol Long Condition and amp; HereIsAnotherOne; // (B) Stud :: Vector & lt; MyLongClassName :: size_type & gt; * Myvector = new std :: vector & lt; MyLongClassName :: size_type & gt; (); Bool isOneOrAnother = Here is the Ezhol Long Condition and amp; HereIsAnotherOne;  

I know this is arbitrary, but is there any tradition or preferred method?

I select (b), but for boolean, I completely Can not add and then repeat the values ​​inside them. I will only add to the feet because my emacs will not do it for me without me.

  bool isOneOrAnother = (here Ison Long condition & amp; amp;; hereIsAnotherOne;);  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -