Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-06-04 Thread Jeff Nowakowski
On 06/03/2011 02:48 PM, Walter Bright wrote: In the beginning, God created tabs. Tab stops were 8 spaces It's 2011. The idea that some character means 8 spaces and should be used to layout code is ass-backwards, regardless if everybody actually followed that rule. It was a fine rule for

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-06-03 Thread Bruno Medeiros
On 12/04/2011 20:49, Nick Sabalausky wrote: Can we move along now? This argument was old 30 years ago. Perhaps we should do VI vs. EMACS while we are at it. Pico rules them all! ;) Vi *and* Emacs suck. Argument settled :P (yes, that was hyperbolic rhetoric) -- Bruno Medeiros -

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-06-03 Thread Jonathan M Davis
On 2011-06-03 05:45, Bruno Medeiros wrote: On 12/04/2011 20:49, Nick Sabalausky wrote: Can we move along now? This argument was old 30 years ago. Perhaps we should do VI vs. EMACS while we are at it. Pico rules them all! ;) Vi *and* Emacs suck. Argument settled :P Yeah, I got sucked

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-06-03 Thread Andrej Mitrovic
I bet you wrote std.datetime with a call to a single Vim macro. Just kidding. :P

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-06-03 Thread Jonathan M Davis
On 2011-06-03 11:01, Andrej Mitrovic wrote: I bet you wrote std.datetime with a call to a single Vim macro. Just kidding. :P That sort of talk leads to things like this: http://xkcd.com/378/ - Jonathan M Davis

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-06-03 Thread Walter Bright
On 4/10/2011 10:58 PM, Daniel Gibson wrote: Am 11.04.2011 07:51, schrieb Jonathan M Davis: Yes. Phobos follows the convention of indenting with spaces and that levels of indentation are 4 spaces. So, anything which goes into Phobos needs to follow this convention. the only way that tabs work

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-06-03 Thread Walter Bright
On 4/11/2011 8:31 AM, Adam D. Ruppe wrote: Yeah, that's all that matters in the end. When in Rome... But it's trivial to do a find and replace all before submitting so really, it's just not a big deal. Before I check in, I run tolf and detab on the source files.

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-06-03 Thread Walter Bright
On 4/11/2011 1:31 PM, Nick Sabalausky wrote: In other words, *some* editors handle space-indentation intelligently (and do so by reinventing *tabs*), while *all* editors handle tab-indentation intelligently. There is no way to handle tabs intelligently. Take a source file that has tab

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-06-03 Thread Adam D. Ruppe
8 space tabs are the One True Way. All other tabstops are evil.

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-06-03 Thread Daniel Gibson
Am 03.06.2011 20:54, schrieb Walter Bright: On 4/11/2011 1:31 PM, Nick Sabalausky wrote: In other words, *some* editors handle space-indentation intelligently (and do so by reinventing *tabs*), while *all* editors handle tab-indentation intelligently. There is no way to handle tabs

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-06-03 Thread Timon Gehr
Daniel Gibson wrote: Am 03.06.2011 20:54, schrieb Walter Bright: On 4/11/2011 1:31 PM, Nick Sabalausky wrote: In other words, *some* editors handle space-indentation intelligently (and do so by reinventing *tabs*), while *all* editors handle tab-indentation intelligently. There is no way

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-06-03 Thread Adam Richardson
On Fri, Jun 3, 2011 at 3:04 PM, Daniel Gibson metalcae...@gmail.com wrote: Am 03.06.2011 20:54, schrieb Walter Bright: On 4/11/2011 1:31 PM, Nick Sabalausky wrote: In other words, *some* editors handle space-indentation intelligently (and do so by reinventing *tabs*), while *all* editors

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-06-03 Thread Stewart Gordon
On 03/06/2011 19:06, Jonathan M Davis wrote: snip That sort of talk leads to things like this: http://xkcd.com/378/ I was told that Real Programmers use punch cards. Someone must've found some even realer programmers Stewart.

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-06-03 Thread Stewart Gordon
On 03/06/2011 20:15, Timon Gehr wrote: Daniel Gibson wrote: snip If you use tabs for indentation and spaces for alignment the tabsize doesn't matter. http://www.emacswiki.org/emacs/SmartTabs Taken the words out of my mouth there. I've been faced with files that are a mishmash of tabs and

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-06-03 Thread Walter Bright
On 6/3/2011 5:14 PM, Stewart Gordon wrote: On 03/06/2011 20:15, Timon Gehr wrote: Daniel Gibson wrote: snip If you use tabs for indentation and spaces for alignment the tabsize doesn't matter. http://www.emacswiki.org/emacs/SmartTabs Taken the words out of my mouth there. I've been faced

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-14 Thread spir
On 04/13/2011 11:44 PM, Andrei Alexandrescu wrote: On 4/13/11 4:17 PM, Jérôme M. Berger wrote: Well, standard (printed) typographic practices put spaces outside the parenthesis and none inside. And as opposed to a lot of typographic rules, that one is a constant across languages and variants.

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-14 Thread Jérôme M. Berger
spir wrote: Actually, I have never been pleased that func defs (1) look like func calls (2) have an exceptional syntax compared to other definitions. I'd like instead eg: square = function (int n) int { return n * n; } That is still different from other

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-14 Thread spir
On 04/14/2011 07:58 PM, Jérôme M. Berger wrote: spir wrote: Actually, I have never been pleased that func defs (1) look like func calls (2) have an exceptional syntax compared to other definitions. I'd like instead eg: square = function (int n) int { return n * n; }

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-13 Thread Bruno Medeiros
On 11/04/2011 20:54, Steven Schveighoffer wrote: In most of the editors I use, the default is to use spaces for indentation. So what happens is someone opens a file that uses tabs for indentation, then adds some lines. However, their editor only uses spaces *for those lines they added*, which

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-13 Thread Bruno Medeiros
On 11/04/2011 22:03, David Gileadi wrote: On 4/11/11 1:51 PM, Jérôme M. Berger wrote: Nick Sabalausky wrote: Andrej Mitrovicandrej.mitrov...@gmail.com wrote in message news:mailman.3396.1302548836.4748.digitalmar...@puremagic.com... Smart editors also allow you to unindent with a single

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-13 Thread Bruno Medeiros
On 12/04/2011 21:08, Nick Sabalausky wrote: Jérôme M. Bergerjeber...@free.fr wrote in message news:io2396$1nuo$1...@digitalmars.com... spir wrote: A drawback is one cannot directly have different indent levels, for instance to indent collection contents more, or less, than blocks of code.

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-13 Thread Jérôme M. Berger
Nick Sabalausky wrote: J�r�me M. Berger jeber...@free.fr wrote in message news:io230l$1ldc$3...@digitalmars.com... Well, I have worked in both environments, and I have seen a lot more mess ups with tabs than with spaces... Other than that (and the fact that almost *no* editors are able to do

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-13 Thread Nick Sabalausky
Jérôme M. Berger jeber...@free.fr wrote in message news:io4sng$1p9b$1...@digitalmars.com... Nick Sabalausky wrote: J?r?me M. Berger jeber...@free.fr wrote in message news:io230l$1ldc$3...@digitalmars.com... Well, I have worked in both environments, and I have seen a lot more mess ups with

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-13 Thread Jérôme M. Berger
Nick Sabalausky wrote: J�r�me M. Berger jeber...@free.fr wrote in message news:io4sng$1p9b$1...@digitalmars.com... Nick Sabalausky wrote: J?r?me M. Berger jeber...@free.fr wrote in message news:io230l$1ldc$3...@digitalmars.com... Well, I have worked in both environments, and I have seen a

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-13 Thread Andrei Alexandrescu
On 4/13/11 4:17 PM, Jérôme M. Berger wrote: Nick Sabalausky wrote: J�r�me M. Bergerjeber...@free.fr wrote in message news:io4sng$1p9b$1...@digitalmars.com... Nick Sabalausky wrote: J?r?me M. Bergerjeber...@free.fr wrote in message news:io230l$1ldc$3...@digitalmars.com... Well, I have

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-12 Thread Jacob Carlborg
On 2011-04-11 22:09, Nick Sabalausky wrote: Jonathan M Davisjmdavisp...@gmx.com wrote in message news:mailman.3371.1302508910.4748.digitalmar...@puremagic.com... Jonathan M Davis Wrote: Personally, I think that it's _horrible_ to use tabs Why would one fear tabs? They change depending on

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-12 Thread spir
On 04/12/2011 05:15 AM, Jonathan M Davis wrote: So, how you format your code matters. Using tabs screws with that unless you're completely consistent, and while a single developer may be consistent, groups of developers rarely are. This is as true in the case of spaces. With the additional

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-12 Thread spir
On 04/12/2011 05:19 AM, Jonathan M Davis wrote: Using only spaces and no tabs avoids the entire issue spaces -- tabs works as fine Why are programmers so blindly unfair when discussing this point? and is one of the major reasons (if not _the_ major reason) why it is incredibly common for

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-12 Thread spir
On 04/12/2011 07:13 AM, Jonathan M Davis wrote: It's true that people occasionally end up inserting tabs in space-only environments, but in my experience, it's fairly rare. It's pretty much a guarantee, however, that _someone_ will insert spaces in an environment where it's supposed to be tabs.

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-12 Thread spir
On 04/12/2011 09:24 AM, Jacob Carlborg wrote: Well, IMO, using spaces for indentation serves no useful purpose. At least tabs actually *mean* alignment and indentation. Spaces don't and never have. Plus, what's the use of being able place the cursor at arbtrary points within the 4 spaces (or 8

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-12 Thread Jacob Carlborg
On 2011-04-12 05:19, Jonathan M Davis wrote: On 04/11/2011 08:13 AM, Jonathan M Davis wrote: They mix tabs and spaces. On some lines, they use spaces and on others they use tabs. Never seen this, not even once. Messing can only happen when one copy-pastes from modules using spaces. As Steve

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-12 Thread Jérôme M. Berger
Jérôme M. Berger wrote: Nick Sabalausky wrote: Andrej Mitrovic andrej.mitrov...@gmail.com wrote in message news:mailman.3396.1302548836.4748.digitalmar...@puremagic.com... Smart editors also allow you to unindent with a single backspace regardless if you're using tabs or spaces. In other

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-12 Thread Jérôme M. Berger
spir wrote: On 04/12/2011 07:13 AM, Jonathan M Davis wrote: It's true that people occasionally end up inserting tabs in space-only environments, but in my experience, it's fairly rare. It's pretty much a guarantee, however, that _someone_ will insert spaces in an environment where it's

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-12 Thread Jérôme M. Berger
spir wrote: In addition to those main reasons, they have a few nice side-effects: * No indent width issue (!), True * 1 tab -- 1 indent level conceptually, True * deletion is 1 key press, even with stupid editors. False, not with some *really* stupid editors I have

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-12 Thread Nick Sabalausky
Cliff Hudson cliff.s.hud...@gmail.com wrote in message news:mailman.3414.1302586393.4748.digitalmar...@puremagic.com... Spaces *should* only be used within string constants (as needed), or when the language otherwise requires them. The editor should format the code according to user

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-12 Thread Nick Sabalausky
Jérôme M. Berger jeber...@free.fr wrote in message news:io230l$1ldc$3...@digitalmars.com... Well, I have worked in both environments, and I have seen a lot more mess ups with tabs than with spaces... Other than that (and the fact that almost *no* editors are able to do it properly), I would

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-12 Thread Nick Sabalausky
Jérôme M. Berger jeber...@free.fr wrote in message news:io2396$1nuo$1...@digitalmars.com... spir wrote: A drawback is one cannot directly have different indent levels, for instance to indent collection contents more, or less, than blocks of code. This can also be considered an advantage; and

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-12 Thread Adam D. Ruppe
Nick Sabalausky wrote: So I've changed my style to this: if(blah) { - foo( - - bigLongArg1, - - bigLongArg2, - - bigLongArg3 - ); } That's something I've started doing too. It's not just a matter of alignment either - I think the first argument on the same line as the function

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-12 Thread Kagamin
Nick Sabalausky Wrote: So I've changed my style to this: if(blah) { - foo( - - bigLongArg1, - - bigLongArg2, - - bigLongArg3 - ); } Much better. Of course, it would be even better still if Scintilla would be willing to add elastic tabstops (I'm getting increasingly annoyed

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-12 Thread spir
On 04/12/2011 10:08 PM, Nick Sabalausky wrote: Jérôme M. Bergerjeber...@free.fr wrote in message news:io2396$1nuo$1...@digitalmars.com... spir wrote: A drawback is one cannot directly have different indent levels, for instance to indent collection contents more, or less, than blocks of code.

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-12 Thread Jonathan M Davis
On 2011-04-12 05:19, Jonathan M Davis wrote: On 04/11/2011 08:13 AM, Jonathan M Davis wrote: They mix tabs and spaces. On some lines, they use spaces and on others they use tabs. Never seen this, not even once. Messing can only happen when one copy-pastes from modules using spaces.

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread Daniel Gibson
Am 11.04.2011 07:51, schrieb Jonathan M Davis: Nick Sabalausky: What, so that he can force his indentation size on everyone else that works on the code? Or so that using the left/right arrow keys within the indentation zone requires an unnessesaraly large number of keypresses? It's a module

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread Jonathan M Davis
Am 11.04.2011 07:51, schrieb Jonathan M Davis: Nick Sabalausky: What, so that he can force his indentation size on everyone else that works on the code? Or so that using the left/right arrow keys within the indentation zone requires an unnessesaraly large number of keypresses? It's

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread bearophile
Jonathan M Davis: Yes. Phobos follows the convention of indenting with spaces and that levels of indentation are 4 spaces. So, anything which goes into Phobos needs to follow this convention. ... Regardless, Phobos doesn't use tabs. So, whatever someone may prefer in their own code,

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread Kagamin
Jonathan M Davis Wrote: Personally, I think that it's _horrible_ to use tabs Why would one fear tabs?

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread Jonathan M Davis
Jonathan M Davis Wrote: Personally, I think that it's _horrible_ to use tabs Why would one fear tabs? They change depending on your editor settings. Indenting gets screwed up if tabs and spaces are mixed. It's just plain annoying to have an indentation of multiple spaces which isn't

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread Daniel Gibson
Am 11.04.2011 10:01, schrieb Jonathan M Davis: Jonathan M Davis Wrote: Personally, I think that it's _horrible_ to use tabs Why would one fear tabs? They change depending on your editor settings. Indenting gets screwed up if tabs and spaces are mixed. It's just plain annoying to have an

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread Jonathan M Davis
Am 11.04.2011 10:01, schrieb Jonathan M Davis: Jonathan M Davis Wrote: Personally, I think that it's _horrible_ to use tabs Why would one fear tabs? They change depending on your editor settings. Indenting gets screwed up if tabs and spaces are mixed. It's just plain annoying to

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread spir
On 04/11/2011 07:51 AM, Jonathan M Davis wrote: the only way that tabs work is if you use them consistently, which in my experience almost never happens. And How so? If you probably set your editor, inconsistency simply cannot happen... The same is true for using spaces, anyway. Denis --

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread spir
On 04/11/2011 08:13 AM, Jonathan M Davis wrote: They mix tabs and spaces. On some lines, they use spaces and on others they use tabs. Never seen this, not even once. Messing can only happen when one copy-pastes from modules using spaces. Denis -- _ vita es estrany

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread spir
On 04/11/2011 10:01 AM, Jonathan M Davis wrote: Jonathan M Davis Wrote: Personally, I think that it's _horrible_ to use tabs Why would one fear tabs? They change depending on your editor settings. That's precisely what they are meant for... unlike space-indentation, tab-indentation

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread Kagamin
Jonathan M Davis Wrote: So, if you do use tabs, you will end up with mixed tabs and spaces unless everyone involved is very careful, which isn't going to happen. If no one is careful, you end up with mixed tabs and spaces, no matter what policies you're trying to enforce.

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread Kagamin
Jonathan M Davis Wrote: Every place that I've ever worked at has gone for spaces only, and I've only ever heard of one place where it was required that tabs be used for indentation. I'm sure that there are others, but it's rare that I've heard of anyone thinking that using tabs in code

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread Adam D. Ruppe
bearophile: It's a module theoretically meant for Phobos, and the Phobos coding standard are spaces. Yeah, that's all that matters in the end. When in Rome... But it's trivial to do a find and replace all before submitting so really, it's just not a big deal.

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread Andrei Alexandrescu
On 4/11/11 10:30 AM, Kagamin wrote: Jonathan M Davis Wrote: Every place that I've ever worked at has gone for spaces only, and I've only ever heard of one place where it was required that tabs be used for indentation. I'm sure that there are others, but it's rare that I've heard of anyone

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread spir
On 04/11/2011 05:31 PM, Adam D. Ruppe wrote: bearophile: It's a module theoretically meant for Phobos, and the Phobos coding standard are spaces. Yeah, that's all that matters in the end. When in Rome... But it's trivial to do a find and replace all before submitting so really, it's just not

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread Andrej Mitrovic
Smart editors also allow you to unindent with a single backspace regardless if you're using tabs or spaces.

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread Steven Schveighoffer
On Mon, 11 Apr 2011 06:17:58 -0400, spir denis.s...@gmail.com wrote: On 04/11/2011 07:51 AM, Jonathan M Davis wrote: the only way that tabs work is if you use them consistently, which in my experience almost never happens. And How so? If you probably set your editor, inconsistency simply

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread Nick Sabalausky
Jonathan M Davis jmdavisp...@gmx.com wrote in message news:mailman.3371.1302508910.4748.digitalmar...@puremagic.com... Jonathan M Davis Wrote: Personally, I think that it's _horrible_ to use tabs Why would one fear tabs? They change depending on your editor settings. Indenting gets screwed

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread Nick Sabalausky
Kagamin s...@here.lot wrote in message news:inv6q0$1hmi$1...@digitalmars.com... Jonathan M Davis Wrote: Every place that I've ever worked at has gone for spaces only, and I've only ever heard of one place where it was required that tabs be used for indentation. I'm sure that there are

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread Nick Sabalausky
Andrej Mitrovic andrej.mitrov...@gmail.com wrote in message news:mailman.3396.1302548836.4748.digitalmar...@puremagic.com... Smart editors also allow you to unindent with a single backspace regardless if you're using tabs or spaces. In other words, *some* editors handle space-indentation

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread Jérôme M. Berger
Nick Sabalausky wrote: Andrej Mitrovic andrej.mitrov...@gmail.com wrote in message news:mailman.3396.1302548836.4748.digitalmar...@puremagic.com... Smart editors also allow you to unindent with a single backspace regardless if you're using tabs or spaces. In other words, *some* editors

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread David Gileadi
On 4/11/11 1:51 PM, Jérôme M. Berger wrote: Nick Sabalausky wrote: Andrej Mitrovicandrej.mitrov...@gmail.com wrote in message news:mailman.3396.1302548836.4748.digitalmar...@puremagic.com... Smart editors also allow you to unindent with a single backspace regardless if you're using tabs or

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread Daniel Gibson
Am 11.04.2011 17:25, schrieb Kagamin: Jonathan M Davis Wrote: So, if you do use tabs, you will end up with mixed tabs and spaces unless everyone involved is very careful, which isn't going to happen. If no one is careful, you end up with mixed tabs and spaces, no matter what policies

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread Daniel Gibson
Am 11.04.2011 23:03, schrieb David Gileadi: On 4/11/11 1:51 PM, Jérôme M. Berger wrote: Nick Sabalausky wrote: Andrej Mitrovicandrej.mitrov...@gmail.com wrote in message news:mailman.3396.1302548836.4748.digitalmar...@puremagic.com... Smart editors also allow you to unindent with a single

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread Andrej Mitrovic
DigitalMarsTV Headlines: Newlines: Why is Microsoft still ignoring the public's demand to eliminate the carriage return? Breaking News: Police investigators are on the lookout for the monster lunatic who originally designed the number system layout for PC-keyboards. As a reminder for the viewers

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread Jonathan M Davis
On 04/11/2011 10:01 AM, Jonathan M Davis wrote: Jonathan M Davis Wrote: Personally, I think that it's _horrible_ to use tabs Why would one fear tabs? They change depending on your editor settings. That's precisely what they are meant for... unlike space-indentation,

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread Jonathan M Davis
On 04/11/2011 08:13 AM, Jonathan M Davis wrote: They mix tabs and spaces. On some lines, they use spaces and on others they use tabs. Never seen this, not even once. Messing can only happen when one copy-pastes from modules using spaces. As Steve pointed out, it frequently happens when

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread Daniel Gibson
Am 12.04.2011 05:15, schrieb Jonathan M Davis: Using tabs screws with that unless you're completely consistent, and while a single developer may be consistent, groups of developers rarely are. - Jonathan M Davis Yeah that is why using spaces screws with that: While a single developer may

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread Nick Sabalausky
Jonathan M Davis jmdavisp...@gmx.com wrote in message news:mailman.3412.1302578409.4748.digitalmar...@puremagic.com... On 04/11/2011 08:13 AM, Jonathan M Davis wrote: They mix tabs and spaces. On some lines, they use spaces and on others they use tabs. Never seen this, not even once.

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread Jonathan M Davis
Jonathan M Davis jmdavisp...@gmx.com wrote in message news:mailman.3412.1302578409.4748.digitalmar...@puremagic.com... On 04/11/2011 08:13 AM, Jonathan M Davis wrote: They mix tabs and spaces. On some lines, they use spaces and on others they use tabs. Never seen this, not even

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread Cliff Hudson
Spaces *should* only be used within string constants (as needed), or when the language otherwise requires them. The editor should format the code according to user preferences. Absent that, spaces represent the lowest common denominator of formatting, so we can all use them and our text shows up

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-11 Thread Andrej Mitrovic
On 4/12/11, Cliff Hudson cliff.s.hud...@gmail.com wrote: Perhaps we should do VI vs. EMACS while we are at it. Don't bring operating systems into this... ... just kidding. :P

[OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-10 Thread Nick Sabalausky
KennyTM~ kenn...@gmail.com wrote in message news:int88l$uaf$1...@digitalmars.com... On Apr 9, 11 04:26, Adam D. Ruppe wrote: We discussed this first in the GUI library thread, but since it meandered so much, I decided to split off into a new subject. Much of what I say here will be old to

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-10 Thread Daniel Gibson
Am 11.04.2011 07:00, schrieb Nick Sabalausky: KennyTM~ kenn...@gmail.com wrote in message news:int88l$uaf$1...@digitalmars.com... On Apr 9, 11 04:26, Adam D. Ruppe wrote: We discussed this first in the GUI library thread, but since it meandered so much, I decided to split off into a new

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-10 Thread bearophile
Nick Sabalausky: What, so that he can force his indentation size on everyone else that works on the code? Or so that using the left/right arrow keys within the indentation zone requires an unnessesaraly large number of keypresses? It's a module theoretically meant for Phobos, and the Phobos

Re: [OT] Spaces/tabs (Was: simple display (from: GUI library for D))

2011-04-10 Thread Jonathan M Davis
Nick Sabalausky: What, so that he can force his indentation size on everyone else that works on the code? Or so that using the left/right arrow keys within the indentation zone requires an unnessesaraly large number of keypresses? It's a module theoretically meant for Phobos, and the