[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Redpill me on Control Flow Statement Spacing

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 7
Thread images: 2

File: precambrian-developer.jpg (169KB, 650x350px) Image search: [Google]
precambrian-developer.jpg
169KB, 650x350px
I'm an ancient developer, and since shortly
before the dawn of time, I've been writing
if/for/while statements with no space after the
control flow keyword. However, in recent
millennia, it seems to have come into fashion
to put a space after the keyword and no space
inside the condition parenthesis.

I see good reason for the time-honored style
since we can't actually omit the parenthesis in
most C-like syntaxes -- So can somebody give
me the really good reason that I'm missing?

// Tradition!
if( test )
doSomething;


Versus:

// Damn kids!
if (test)
doSomething;
>>
File: BYShwSK.jpg (149KB, 625x838px) Image search: [Google]
BYShwSK.jpg
149KB, 625x838px
>>58095782
Why not simply choose the one you like and get over it?
>>
>>58095782
IFs insteads of GOTOs? Your C is so weak.
>>
>>58095817
When it comes to code, I make all of my choices for better reasons than preference. I do not see any reason for the current prevailing style.
>>
>>58095876
Bro, do you even JXCZ?
>>
>>58095782
This is like asking about right or left hand dominant.

Just use style which your IDE has when you use auto format code on save or what your team / company has as it's ideology.
>>
>>58095902
I see no real difference between the two other than style.
Thread posts: 7
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.