by stephenr · 15y ago · 0 comments
I too disagree with him about several things - these two off the top of my head:
* White space - real tabs are much easier to work with than spaces
* new Operator - a) we can automagically return a new instance if the constructor is called normally and b) even if we couldn't, that's no reason to stop using a major part of OOP.
With spaces there's no sudden, 'woah, what happened there'.
some_function_with_too_many_args(some_argument, another,
a_third, and_so_on);
That style is problematic with tabs. The only way to make that look right with all different tab settings (8, 4, 2, etc) is to mix tabs and spaces--indent to the main indentation level with tabs and then use spaces to indent the rest of the way. Not many editors do that automatically for you and so it is not a popular style.All spaces is much easier to deal with (at the cost of being non-customizable) and so that seems to be the dominant way of doing things nowadays.