Hacker News new | ask | show | jobs
by eviks 554 days ago
> the reader, are viewing my code exactly as I, the author, wrote it.

That's not a good reason, there are way too many writers with poor design sensibilities, so flexibility is better.

And in your example you'd use elastic tabstops so that a single extra tab would visually expand to align arguments for you if you like it, but not for me if I don't

1 comments

Indeed, it's a terrible reason.

Why should you have control over what indentation width I choose to use?

There are a bunch of reasons why I might want a narrower or wider tab width. Most obviously, screen real estate - I might be coding on a tiny device.

When you do indentation and alignment properly (tab for indentation, space for alignment, as others have said), it's formatted the way the writer wants, while also respecting the reader's preference for tab width.

Spaces for indentation is incorrect, pure and simple. And the war is not "won".