Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
Trust the World's Fastest VPN with Your Internet Security & Freedom - A Lifetime Subscription of PureVPN at 88% off. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. ×

Comment Who cares? (Score 1) 464

Honestly, who cares what brace style K&R used in their 17+ year-old book.

I seem to remember these guys also peppered their code examples with one letter variable names and avoided checking array bounds like the plague. Almost every string handling example had a potential buffer overflow in it. Should we keep these practices too because K&R popularized them? Are K&R that infallible?

Anyway, here you go, directly from the book:

"The position of braces is less important (than indentation is), although people hold passionate beliefs. We have chosen one of several popular styles. Pick a style that suits you, then use it consistently." -- The C Programming Language, page 10.

Thanks K&R for your permission! BSD style it is!

Slashdot Top Deals

Somebody's terminal is dropping bits. I found a pile of them over in the corner.

Working...