Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Tabs vs Spaces lets give this a go

by mreece (Friar)
on Oct 08, 2006 at 07:03 UTC ( #576946=note: print w/replies, xml ) Need Help??

in reply to Tabs vs Spaces lets give this a go

what really drives me nuts is editors that like to write 4 spaces for one indent, tab character for two.

the more general problem with tabs is that someone invariably is going to want to indent a wrapped line an additional 6 spaces and is going to do it with a tab and two spaces, and someone else is going to try to display tabs as 3 spaces and it won't line up.

it may not technically even violate your rules above (tho 5 is ambiguous enough it may apply).

you've also taken away the ability to use the tab key to speed the alignment of tabular arrays.

to say, i agree in principle, but not in practice. the easiest way to get consistency is to restrict freedom -- soft tabs only, 4 spaces per indent.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://576946]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (1)
As of 2021-02-27 01:12 GMT
Find Nodes?
    Voting Booth?

    No recent polls found