develooper Front page | perl.perl5.porters | Postings from May 2012

Re: RFC: Proposal to change the editor hints in core files to expandtabs

Thread Previous | Thread Next
From:
Vincent Pit
Date:
May 21, 2012 03:01
Subject:
Re: RFC: Proposal to change the editor hints in core files to expandtabs
Message ID:
4FBA1275.4090504@profvince.com
On 21/05/2012 11:27, Leon Timmermans wrote:
> On Mon, May 21, 2012 at 5:34 AM, Karl Williamson
> <public@khwilliamson.com>  wrote:
>> Perl Best Practices suggests that tabs be expanded in Perl source, for a
>> number of reasons.  I often run into similar issues in C source.  And I
>> think others have complained too.  I agree with Damian on this.
>>
>> Instead of making a big patch to do this, I suggest that we just change the
>> editor hints at the bottom of the files to expand tabs.  Then, as lines get
>> changed in the files, they will conform to the new paradigm.
>>
>> I suggested this to rjbs some time ago, and he wanted to wait until early in
>> 5.17 to vet this, so here it is.
> If I understand this right, this would result in files having
> mixed-style whitespace. I think that would be a fairly bad thing. I
> don't think this is a good idea.
>
> Leon
>

To be fair, that's already the case for most of the source files.

I don't really like the idea of editor hints enforcing style. Like their 
name suggest, they are only hints. The end user can decide whether or 
not he wants to apply them (I don't). The only way out of this mess is 
an official style policy (whichever!) about what kind of spacing scheme 
is to be used in the source.

Though I'm not really sure the incoming bikeshed really worths the trouble.


Vincent

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About