De: Daniel Leidert <[EMAIL PROTECTED]>
>> Short question: What made the decision to use spaces instead of tabs for
>> indentation? Tabs allow the user to choose how many spaces are used for
>> a tab-step. Using only spaces encreases the file-size and forces the
>> user to use the chosen tab-step.
>
>I've tested indentation in JmolApplet.java by using:
>
>indent --line-length 80 --k-and-r-style --tab-size 4 -bbo JmolApplet.java
>
>and the resulting file-size is only 92% of the original file. For the
>whole Jmol archive this could mean a noticeable reduction. What do you
>think about this?


Personally, I prefer spaces because to do some alignements, you need a fixed 
width (for example, for a "if" going on several lines, I put 4 spaces for the 
lines 2 to n). Depending on the tab-step, someone could insert 2 tabs, 1 tab + 
1 space, 1 tab, 4 spaces to do the alignment.
 
The disk space is not a problem. Jmol java files take less than 5M in total, 8% 
represents only 400K.



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to