Chuck Esterbrook schrieb:
> What about [EMAIL PROTECTED]'s suggestion:
> """
> What if you stayed with tabs and then added a converter, so that you
> can quickly convert the tabs to the number of spaces that you want?
> In fact, this might be a good idea for a lot of free source Python
> projects distributed on the web -- though I would suspect it would be
> better to use tabs as the default and offer the ability to convert to
> space because sometimes it's possible it might not look quite right
> converting a project coded for spaces to tabs.
> """
> 
> It allows everyone to use their favorite approach.
> 
> You mentioned something about patches being a mess, but I don't see
> why. People could send in patches as "all spaces" or "all tabs" or am
> I not thinking of something?

I saw the problem in converting to the number of spaces "that you want". 
  As long as the converter uses a fixed size, it would not be a mess.

It still would be inconvenient, because you always have to think about 
this issue and either convert back and forth manually, or use a script, 
or change the settings in your editor. I'm working with a lot of Python 
code from various sources, and they all use 4 spaces for indentation 
since it's recommended in PEP8. I do not even need to think about tabs 
and tab sizes any more, it's only Webware where I need to worry.

It's not a big deal and I can live with tabs very well, but if we want 
to change, this release would be a good opportunity.

> I suppose there would then be a burden on people who use spaces to
> invoke a script prior to checkin, but could that also be done via a
> script? Something like:
> 
> # ci
> tabify -r .
> svn ci $*
> spacify -r .

I'm not sure how to do this on the server (repository) side. On the 
client side people also use IDEs or TortoiseSVN to check code in. And 
this should only run for Webware, not for other projects. Generally I 
don't like too much automagic because then you always have to worry 
whether it is really active etc.

-- Chris

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Webware-devel mailing list
Webware-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to