Then there's no problem with tabs either.

 Alexey





________________________________
From: Ricky Clarkson <ricky.clark...@gmail.com>
To: javaposse@googlegroups.com
Sent: Wed, May 18, 2011 12:13:09 PM
Subject: Re: [The Java Posse] Vs: Re: How many characters do you use for 
indention?

It'll get reformatted.


--
Skype: ricky_clarkson
UK phone (forwards to Skype): 0161 408 5260



On Wed, May 18, 2011 at 11:01 AM, Alexey Zinger <inline_f...@yahoo.com> wrote:

So what happens if you accept someone else's code, who was using the "wrong" 
number of spaces for indent and mix it with your code?
>
> Alexey
>
>
>
>
>
________________________________
 From: Ricky Clarkson <ricky.clark...@gmail.com>
>To: javaposse@googlegroups.com
>Sent: Wed, May 18, 2011 6:44:06 AM
>Subject: Re: [The Java Posse] Vs: Re: How many characters do you use for 
>indention?
>
>
>The problem is that if you, accidentally or otherwise, end up with a mixture 
>of 
>tabs and spaces for indentation, people with different tab sizes set see your 
>code as spaghetti.
>
>It's easier to write a rule that detects and rejects tabs than it is to detect 
>a 
>bad mixture of tabs and spaces.  In the latter, what would happen with:
>
>< tab >int[] x = {1, 2, 3, 4, 5,
>< tab >           6, 7, 8, 9, 10};
>
>--
>Skype: ricky_clarkson
>UK phone (forwards to Skype): 0161 408 5260
>
>
>
>On Wed, May 18, 2011 at 6:45 AM, Roland Tepp <luol...@gmail.com> wrote:
>> At the risk of causing some whitespace holy war, I would actually secont
>> that sentiment.
>>
>> I am actually rather surprised at the level of dislike for a tab character
>> among this crowd, because this tab character fits really well into the
>> semantics of nesting/indentation. You can express a level of indentation
>> with a single character and adjust the actual visual representation of the
>> indentation depth at the editor/IDE level.
>>
>> Also - if everyone used tab for indentation, it would open up elastic
>> tabstops and opening up.
>> Also, to throw it out here, I just stumbled upon a pretty neat idea talking
>> about sidestepping the whole tabs vs spaces discussion by using a word
>> processor for writing code instead. Quite bold proposal, I would say...
>>
>> kolmapäev, 18. mai 2011 9:56.33 UTC+3 kirjutas Casper Bang:
>>>
>>> > (anyone who mentions they use tabs, please line up against the back
>>> > wall)
>>>
>>> Bah if everyone just used a tab to signify a logical indentation
>>> level, your whole question becomes pointless - think about it for a
>>> second. Indentation should be about expressing semantics on screen,
>>> not act as a space macro in the AST. I usually render one indentation
>>> as 4 spaces.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "The Java Posse" group.
>> To post to this group, send email to javaposse@googlegroups.com.
>> To unsubscribe from this group, send email to
>> javaposse+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/javaposse?hl=en.
>>
>
>
-- 
>
>You received this message because you are subscribed to the Google Groups "The 
>Java Posse" group.
>To post to this group, send email to javaposse@googlegroups.com.
>To unsubscribe from this group, send email to 
>javaposse+unsubscr...@googlegroups.com.
>For more options, visit this group at 
>http://groups.google.com/group/javaposse?hl=en.
>
-- 
>
>You received this message because you are subscribed to the Google Groups "The 
>Java Posse" group.
>To post to this group, send email to javaposse@googlegroups.com.
>To unsubscribe from this group, send email to 
>javaposse+unsubscr...@googlegroups.com.
>For more options, visit this group at 
>http://groups.google.com/group/javaposse?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to javaposse@googlegroups.com.
To unsubscribe from this group, send email to 
javaposse+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to javaposse@googlegroups.com.
To unsubscribe from this group, send email to 
javaposse+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to