Skip to content

Ask HN: Role of whitespaces in coding standards / style guide.

1 pointsiphr1 comment
On HN

Just wanted to gauge how many people think whether being particular about spaces, line breaks and tabbing is a valuable addition in a coding style guide? (The opposite being leave it open for developers to make a sane decision). For people who want specifics: This question is in reference to C++. I would post my own opinion but I do not want to add bias to the discussion. Thanks.

Comments

I think two decisions need to be made:

1. Tabs vs spaces. 2. If spaces, what is the indent depth?

Apart from that, people should be able to do whatever the hell they want, within reason.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.