[OT] Spaces/tabs (Was: simple display (from: GUI library for D))
Jonathan M Davis
jmdavisProg at gmx.com
Mon Apr 11 20:15:07 PDT 2011
> On 04/11/2011 10:01 AM, Jonathan M Davis wrote:
> >> Jonathan M Davis Wrote:
> >>> > > Personally, I think that it's _horrible_ to use tabs
> >> >
> >> > Why would one fear tabs?
> >
> > They change depending on your editor settings.
>
> That's precisely what they are meant for... unlike space-indentation,
> tab-indentation respects you :-)
> Using spaces for indent is using *content* to describe *display*. It's
> messing up model with view, just like using <b> instead of <strong>.
I don't believe that the model-view issue really applies to code. For that to
work, the model and view would have to be truly separate, and they aren't.
Editors would have to understand the language and be able to format it based
on what you wanted, then you could format code however you liked without
affecting anyone else. But things just don't work that way. So, how you format
your code matters. Using tabs screws with that unless you're completely
consistent, and while a single developer may be consistent, groups of
developers rarely are.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list