var A = (condition)
? statementOnTrue
: statementOnFalse;
vsvar A = (condition) ?
statementOnTrue :
statementOnFalse;
>>58339563
I use the second one because I'm skittish about putting operators on a newline. I believe in some languages that shit doesn't fly.
First looks better though
>>58339563
Should have assigned each to a different var (A vs B) so we could vote easily, but I much prefer the first one.
var A = (condition) ? statementOnTrue : statementOnFalse;
Using multiple lines when it isn't necessary is a symptom of down syndrome.
>>58339635
Obviously it's just an example. Imagine 60 character long statements and conditions. That single line will be idiotically long
>>58339605
this
ever since trying to split a printf under the basis of a string literal and got a million errors, I just don't do it anymore. I let it wrap or pay more attention.
>>58339665
IF you have that you're doing it wrong...