4 ms·
And 2 spaces is way too little. 4 is the sweet spot. Reason: with 2 the visual lines at different indent levels are just too close, in many fonts/sizes.
by e40 10y ago
And 2 spaces is way too little. 4 is the sweet spot.
Reason: with 2 the visual lines at different indent levels are just too close, in many fonts/sizes.
- tomlu 10y agoIt's 2 spaces for everything here, even python. I don't like it and don't think I'll ever get used to it, like you say 2 is too little.
- rossjudson 10y agoWrong. 3 spaces is the sweet spot. What is it with you people and powers of two? ;)
- lisivka 10y agoIt is easy to catch an indentation error with two spaces, while it is harder to make an indentation error with just two spaces. It also easier to type two spaces than 3 or 4 spaces, which is important when program is typed without help of an autoindentation tool. Two spaces are enough for fixed length font, typical in terminal, but also saves screen space, which is just 80 characters in width.