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

Re: perlstyle and portability



In <200001300414.UAA15670@maul.activestate.com>, Gurusamy Sarathy writes:
:I guess there are three camps here then:
:
:  1. don't care, but leave ts=8 alone dammit!
:  2. only spaces for indents dammit!
:  3. only tabs for indents dammit!
:
:Note that:
:
:  * camp #1 is generous about accepting code from both camp #2 or #3.
:  * #2 and #3 are both difficult to implement for an open source project,
:    because they require strict enforcement of editor settings/user
:    habits.
:  * code from both camps #1 and #2 can be sent to a printer or cat-ed
:    to a terminal without getting confusing/wrapped.
:  * code from #2 looks the same everywhere regardless of tabstop,
:    because they don't use no steenking tabs.
:  * code from #3 allows users to customize how the code looks in an
:    editor that allows changing ts (but loses when you send it to a
:    printer).  camps #1 and #2 must mandate an indent width in
:    practice (e.g., sw=4 for Perl source)
   * code from #3 allows users to customise how indentation looks in
     an editor that allows changing ts, but only as long as the first
     non-whitespace is the only 'located' thing on the line: trailing
     comments on code lines, for example, are unlikely to stay lined up

:I'm firmly in camp #1, and see little reason for changing anything.

I didn't particularly expect change: there are too many applications
out there that do not allow you to modify the tab width. It seemed
worth giving the arguments at least a brief airing, however.

Hugo


Follow-Ups from:
Pete Jordan <pjordan1@email.mot.com>
References to:
Gurusamy Sarathy <gsar@ActiveState.com>

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