[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

Re: perlstyle and portability



In <200001300236.SAA15521@maul.activestate.com>, Gurusamy Sarathy writes:
:On Sun, 30 Jan 2000 01:16:59 GMT, Hugo wrote:
:>Certainly the 'every indentation is a tab' approach is what I use in all
:>code I write; the perl source code is the only area in which I do not get
:>to choose what width each indent will represent, and have to remember
:>each time that the code looks wrong simply because I haven't ':se ts=8'
:>yet.
:
:Everyone that uses a non-standard tabstop for their own private code
:should put something like this (or similar, depending on your editor):
:
:    # vi: set ts=4:  # or whatever non-standard value you want
:
:I consider putting "set ts=4" in .exrc simply a bad idea, because
:you're choosing to be non-standard by default.

Well, you call it 'non-standard', I call it 'sensible': most people
I know have an indent width they are most comfortable with, and by no
means all of them pick 4. They can view my code at the width they find
comfortable by setting a tabstop appropriately; they don't have that
choice with the Perl source code.

Maybe one day we'll be able to parse Perl well enough to write a fully
flexible 'indent' program; then it will matter far less.

Hugo


Follow-Ups from:
Gurusamy Sarathy <gsar@ActiveState.com>
References to:
Gurusamy Sarathy <gsar@ActiveState.com>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]