Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Spaces vs Tabs

by SuicideJunkie (Vicar)
on Jun 16, 2017 at 15:01 UTC ( #1192947=note: print w/replies, xml ) Need Help??

in reply to Spaces vs Tabs

The idea that you can only choose one is the root of the problem, IMO.

Tabs are indentation, spaces are alignment. Then you can set your tab width to anything and it all works.

If tab stops could be globally set at PI spaces wide, then this would be obvious.

In the end, you just go with the flow and clone whatever style is already there to get money.

Replies are listed 'Best First'.
Re^2: Spaces vs Tabs
by shmem (Chancellor) on Jun 16, 2017 at 16:19 UTC
    The idea that you can only choose one is the root of the problem, IMO.

    I'd say that the root of the problem is unfamiliarity with old typewriters, and the fact that the convention of tab stops defaulting to 8 spaces can so easily be overridden in the wrong way, yielding disastrous results.

    Tabs are indentation, spaces are alignment.

    The other way round that is. On the old typewriters, you could set stops for alignment of data skipping thus a fixed amount of spaces, mainly for filling out tables; whereas the indentation in typesetting e.g. at the beginning of a paragraph was done with spaces.

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2021-10-24 01:32 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (88 votes). Check out past polls.