Re: indent style for D

2012-01-31 Thread Zardoz
On Sun, 29 Jan 2012 21:20:01 +0100, Timon Gehr wrote: On 01/29/2012 08:26 PM, Marco Leise wrote: Am 29.01.2012, 16:23 Uhr, schrieb Trass3r u...@known.com: Am I mistaken? If no, am I missing some major spaces advantages? If no, lets use tabs. Perhaps, there is no tool that will convert

Re: indent style for D

2012-01-30 Thread Denis Shelomovskij
30.01.2012 0:49, Walter Bright пишет: On 1/29/2012 6:04 AM, Denis Shelomovskij wrote: Why does Phobos use 4-space indentation? Because it works, changing it would be a vast waste of time for a non-existent benefit, and it would become a nuisance to do diffs of source code that cross the

Re: indent style for D

2012-01-30 Thread Walter Bright
On 1/30/2012 2:16 AM, Denis Shelomovskij wrote: P.S. I started this thread because of wasting my time for conversion/checking and inconsistent situation: druntime/Phobos have both spaces/tabs now (yes, there are significantly more spaces, but it doesn't reduce the problem), e.g. you just broke

Re: indent style for D

2012-01-30 Thread Kagamin
On Monday, 30 January 2012 at 10:16:36 UTC, Denis Shelomovskij wrote: I started this thread Poor topicstarter. His topic is hijacked and buried if flame, and he himself is sent to oblivion.

Re: indent style for D

2012-01-30 Thread Stewart Gordon
On 30/01/2012 02:24, H. S. Teoh wrote: snip And I'd love to have my integer set class be able to use ∪ and ∩ instead of verbose operations like x.union(y) and x.intersection(y). snip My utility library uses | and . Think of the possible values of the type you're creating a set of as being

Re: indent style for D

2012-01-30 Thread H. S. Teoh
On Tue, Jan 31, 2012 at 02:43:57AM +, Stewart Gordon wrote: On 30/01/2012 02:24, H. S. Teoh wrote: snip And I'd love to have my integer set class be able to use ∪ and ∩ instead of verbose operations like x.union(y) and x.intersection(y). snip My utility library uses | and . Think of

indent style for D

2012-01-29 Thread Gour
Hello! It was mentioned in #D that gdc will probably adapt its code to GNU code style and I wonder, seeing no recemmendation in http://www.d-programming-language.org/dstyle.html in regard to indent-style, can someone shed some light what is recommended practice for it within D community?

Re: indent style for D

2012-01-29 Thread Jonathan M Davis
On Sunday, January 29, 2012 10:15:25 Gour wrote: Hello! It was mentioned in #D that gdc will probably adapt its code to GNU code style and I wonder, seeing no recemmendation in http://www.d-programming-language.org/dstyle.html in regard to indent-style, can someone shed some light what is

Re: indent style for D

2012-01-29 Thread Alex Rønne Petersen
On 29-01-2012 10:15, Gour wrote: Hello! It was mentioned in #D that gdc will probably adapt its code to GNU code style and I wonder, seeing no recemmendation in http://www.d-programming-language.org/dstyle.html in regard to indent-style, can someone shed some light what is recommended practice

Re: indent style for D

2012-01-29 Thread Gour
On Sun, 29 Jan 2012 12:21:35 +0100 Alex Rønne Petersen xtzgzo...@gmail.com wrote: Phobos generally uses 4-space indentation. That is mentioned in the style-guide, but I'm curious about bracing, iow, GNUstyle, KR, ANSI...? Sincerely, Gour -- The working senses are superior to dull matter;

Re: indent style for D

2012-01-29 Thread Trass3r
Am 29.01.2012, 12:34 Uhr, schrieb Gour g...@atmarama.net: On Sun, 29 Jan 2012 12:21:35 +0100 Alex Rønne Petersen xtzgzo...@gmail.com wrote: Phobos generally uses 4-space indentation. That is mentioned in the style-guide, but I'm curious about bracing, iow, GNUstyle, KR, ANSI...? Some

Re: indent style for D

2012-01-29 Thread Trass3r
http://www.d-programming-language.org/dstyle.html in regard to indent-style, can someone shed some light what is recommended practice for it within D community? Everyone thinks his way is the best.

Re: indent style for D

2012-01-29 Thread Jonathan M Davis
On Sunday, January 29, 2012 12:34:22 Gour wrote: On Sun, 29 Jan 2012 12:21:35 +0100 Alex Rønne Petersen xtzgzo...@gmail.com wrote: Phobos generally uses 4-space indentation. That is mentioned in the style-guide, but I'm curious about bracing, iow, GNUstyle, KR, ANSI...? Phobos uses

Re: indent style for D

2012-01-29 Thread Denis Shelomovskij
29.01.2012 15:21, Alex Rønne Petersen пишет: On 29-01-2012 10:15, Gour wrote: Hello! It was mentioned in #D that gdc will probably adapt its code to GNU code style and I wonder, seeing no recemmendation in http://www.d-programming-language.org/dstyle.html in regard to indent-style, can someone

Re: indent style for D

2012-01-29 Thread Iain Buclaw
On 29 January 2012 14:04, Denis Shelomovskij verylonglogin@gmail.com wrote: 29.01.2012 15:21, Alex Rønne Petersen пишет: On 29-01-2012 10:15, Gour wrote: Hello! It was mentioned in #D that gdc will probably adapt its code to GNU code style and I wonder, seeing no recemmendation in

Re: indent style for D

2012-01-29 Thread bearophile
Denis Shelomovskij: Am I mistaken? If no, am I missing some major spaces advantages? If no, lets use tabs. D2 style guide should *require* D2 to be edited using a mono-spaced font, and the D2 front-end should enforce this with a -ms compiler switch. Bye, bearophile

Re: indent style for D

2012-01-29 Thread Daniel Murphy
http://media.comicvine.com/uploads/6/67698/1595201-oh_look_its_this_thread_again_super.jpg

Re: indent style for D

2012-01-29 Thread deadalnix
Le 29/01/2012 12:36, Trass3r a écrit : http://www.d-programming-language.org/dstyle.html in regard to indent-style, can someone shed some light what is recommended practice for it within D community? Everyone thinks his way is the best. I would say that the most important is to be consistent

Re: indent style for D

2012-01-29 Thread Trass3r
Personally, I've never understood how anyone can stand anything other than Allman. Totally agree.

Re: indent style for D

2012-01-29 Thread a
On Sunday, 29 January 2012 at 14:42:16 UTC, Daniel Murphy wrote: http://media.comicvine.com/uploads/6/67698/1595201-oh_look_its_this_thread_again_super.jpg That's nothing. If you want to see a truly great bikeshedding thread, go there:

Re: indent style for D

2012-01-29 Thread Trass3r
Am I mistaken? If no, am I missing some major spaces advantages? If no, lets use tabs. Perhaps, there is no tool that will convert (convert right, not somehow, see article) tabs-spaces in D code. There wouldn't be any problem if people were able to use tabs for indentation and spaces for

Re: indent style for D

2012-01-29 Thread David
Am 29.01.2012 16:23, schrieb Trass3r: But people are dumb and many project leaders take no risks and require spaces everywhere instead of doing it properly. An ever better solution is elastic tabstops, but unfortunately no major editor supports that. Where's the problem, you can configure

Re: indent style for D

2012-01-29 Thread deadalnix
Le 29/01/2012 16:39, David a écrit : Am 29.01.2012 16:23, schrieb Trass3r: But people are dumb and many project leaders take no risks and require spaces everywhere instead of doing it properly. An ever better solution is elastic tabstops, but unfortunately no major editor supports that.

Re: indent style for D

2012-01-29 Thread Stewart Gordon
On 29/01/2012 14:17, bearophile wrote: Denis Shelomovskij: Am I mistaken? If no, am I missing some major spaces advantages? If no, lets use tabs. D2 style guide should *require* D2 to be edited using a mono-spaced font, and the D2 front-end should enforce this with a -ms compiler switch.

Re: indent style for D

2012-01-29 Thread bearophile
Stewart Gordon: What do you mean by the D2 front-end? It was one of my first attempts at humor :-) Bye and sorry, bearophile

Re: indent style for D

2012-01-29 Thread Stewart Gordon
On 29/01/2012 14:17, bearophile wrote: Denis Shelomovskij: Am I mistaken? If no, am I missing some major spaces advantages? If no, lets use tabs. D2 style guide should *require* D2 to be edited using a mono-spaced font, and the D2 front-end should enforce this with a -ms compiler switch.

Re: indent style for D

2012-01-29 Thread Manfred Nowak
deadalnix wrote: I would say that the most important is to be consistent accros a project If it is indead important, then the project shoud have a tool that can enforce that style. And every coder should have a tool that enforces her/his indiviuell style, if she/he cannot cope with that

Re: indent style for D

2012-01-29 Thread Ali Çehreli
On 01/29/2012 06:54 AM, Trass3r wrote: Personally, I've never understood how anyone can stand anything other than Allman. Totally agree. Well, people adapt and values change. :) I've always used Allman style (although learning its name just now), until I started to work at my current job

Re: indent style for D

2012-01-29 Thread Stewart Gordon
On 29/01/2012 15:39, David wrote: Am 29.01.2012 16:23, schrieb Trass3r: But people are dumb and many project leaders take no risks and require spaces everywhere instead of doing it properly. An ever better solution is elastic tabstops, but unfortunately no major editor supports that. Where's

Re: indent style for D

2012-01-29 Thread Russel Winder
On Sun, 2012-01-29 at 14:09 +, Iain Buclaw wrote: [...] The problem is lines with mixed tabs and spaces, and different users set their text editors see tabs differently. ie: is your tab-width set to 2, 3, 4, or 8? Isn't that the whole point: using spaces causes conflict over indentation,

Re: indent style for D

2012-01-29 Thread Russel Winder
On Sun, 2012-01-29 at 09:17 -0500, bearophile wrote: Denis Shelomovskij: Am I mistaken? If no, am I missing some major spaces advantages? If no, lets use tabs. D2 style guide should *require* D2 to be edited using a mono-spaced font, and the D2 front-end should enforce this with a -ms

Re: indent style for D

2012-01-29 Thread Mirko Pilger
Ever heard of any one having such a tool? http://golang.org/cmd/gofmt/

Re: indent style for D

2012-01-29 Thread Sean Cavanaugh
On 1/29/2012 5:36 AM, Trass3r wrote: http://www.d-programming-language.org/dstyle.html in regard to indent-style, can someone shed some light what is recommended practice for it within D community? Everyone thinks his way is the best. Thats because it is :) curley braces on the same line

Re: indent style for D

2012-01-29 Thread Denis Shelomovskij
29.01.2012 20:48, bearophile пишет: Stewart Gordon: What do you mean by the D2 front-end? It was one of my first attempts at humor :-) Bye and sorry, bearophile Thanks for explicitly defining that! You just saved a lot of my time. )

Re: indent style for D

2012-01-29 Thread Stewart Gordon
On 29/01/2012 17:29, Russel Winder wrote: On Sun, 2012-01-29 at 14:09 +, Iain Buclaw wrote: [...] The problem is lines with mixed tabs and spaces, and different users set their text editors see tabs differently. ie: is your tab-width set to 2, 3, 4, or 8? Isn't that the whole point:

Re: indent style for D

2012-01-29 Thread Russel Winder
On Sun, 2012-01-29 at 18:07 +, Stewart Gordon wrote: [...] It is. But mishmashing tab and space indentation causes far worse conflict. Agreed -- homogeneity of the character used for spacing, especially indentation, is critical . I think this is why Emacs (*) has a way of converting all

Re: indent style for D

2012-01-29 Thread Jesse Phillips
On Sunday, 29 January 2012 at 16:48:18 UTC, bearophile wrote: Stewart Gordon: What do you mean by the D2 front-end? It was one of my first attempts at humor :-) Bye and sorry, bearophile Don't worry I had a good laugh.

Re: indent style for D

2012-01-29 Thread Denis Shelomovskij
29.01.2012 22:07, Stewart Gordon пишет: It is. But mishmashing tab and space indentation causes far worse conflict. Iain - I take it you meant that mishmashing, combined with users having different tab size settings, causes a problem. Correct? Stewart. Looks the reason against tabs is: mixed

Re: indent style for D

2012-01-29 Thread Denis Shelomovskij
29.01.2012 21:29, Russel Winder пишет: On Sun, 2012-01-29 at 14:09 +, Iain Buclaw wrote: [...] The problem is lines with mixed tabs and spaces, and different users set their text editors see tabs differently. ie: is your tab-width set to 2, 3, 4, or 8? Isn't that the whole point: using

Re: indent style for D

2012-01-29 Thread Iain Buclaw
On 29 January 2012 18:11, Denis Shelomovskij verylonglogin@gmail.com wrote: 29.01.2012 18:09, Iain Buclaw пишет: On 29 January 2012 14:04, Denis Shelomovskij verylonglogin@gmail.com  wrote: 29.01.2012 15:21, Alex Rønne Petersen пишет: On 29-01-2012 10:15, Gour wrote: Hello!

Re: indent style for D

2012-01-29 Thread Marco Leise
Am 29.01.2012, 12:43 Uhr, schrieb Jonathan M Davis jmdavisp...@gmx.com: On Sunday, January 29, 2012 12:34:22 Gour wrote: On Sun, 29 Jan 2012 12:21:35 +0100 Alex Rønne Petersen xtzgzo...@gmail.com wrote: Phobos generally uses 4-space indentation. That is mentioned in the style-guide, but I'm

Re: indent style for D

2012-01-29 Thread Jérôme M. Berger
Manfred Nowak wrote: deadalnix wrote: I would say that the most important is to be consistent accros a project If it is indead important, then the project shoud have a tool that can enforce that style. And every coder should have a tool that enforces her/his indiviuell style, if

Re: indent style for D

2012-01-29 Thread Marco Leise
Am 29.01.2012, 16:23 Uhr, schrieb Trass3r u...@known.com: Am I mistaken? If no, am I missing some major spaces advantages? If no, lets use tabs. Perhaps, there is no tool that will convert (convert right, not somehow, see article) tabs-spaces in D code. There wouldn't be any problem if

Re: indent style for D

2012-01-29 Thread Derek
On Mon, 30 Jan 2012 01:04:43 +1100, Denis Shelomovskij verylonglogin@gmail.com wrote: * Such tab using shows respect to a programmer allowing him to configure tab size as he prefer. This works ok for editors, but I can't work out how to configure my browser's tab-stops or the

Re: indent style for D

2012-01-29 Thread Timon Gehr
On 01/29/2012 08:26 PM, Marco Leise wrote: Am 29.01.2012, 16:23 Uhr, schrieb Trass3r u...@known.com: Am I mistaken? If no, am I missing some major spaces advantages? If no, lets use tabs. Perhaps, there is no tool that will convert (convert right, not somehow, see article) tabs-spaces in D

Re: indent style for D

2012-01-29 Thread Walter Bright
On 1/29/2012 6:17 AM, bearophile wrote: D2 style guide should *require* D2 to be edited using a mono-spaced font, and the D2 front-end should enforce this with a -ms compiler switch. What? How could the compiler possibly know what font was used in your editor?

Re: indent style for D

2012-01-29 Thread Walter Bright
On 1/29/2012 6:04 AM, Denis Shelomovskij wrote: Why does Phobos use 4-space indentation? Because it works, changing it would be a vast waste of time for a non-existent benefit, and it would become a nuisance to do diffs of source code that cross the re-whitespace boundary. The style for

Re: indent style for D

2012-01-29 Thread Walter Bright
On 1/29/2012 10:53 AM, Denis Shelomovskij wrote: No, it isn't. Spaces aren't comfortable to use in existed editors. Right, and I use tabs in my editor. I also run all files through the tools: detab to convert my tabs to spaces and: tolf to convert to LF line endings before checkin.

Re: indent style for D

2012-01-29 Thread Denis Shelomovskij
29.01.2012 23:02, Iain Buclaw пишет: On 29 January 2012 18:11, Denis Shelomovskij verylonglogin@gmail.com wrote: 29.01.2012 18:09, Iain Buclaw пишет: On 29 January 2012 14:04, Denis Shelomovskij verylonglogin@gmail.comwrote: 29.01.2012 15:21, Alex Rønne Petersen пишет: On

Re: indent style for D

2012-01-29 Thread Timon Gehr
On 01/29/2012 06:52 PM, Sean Cavanaugh wrote: On 1/29/2012 5:36 AM, Trass3r wrote: http://www.d-programming-language.org/dstyle.html in regard to indent-style, can someone shed some light what is recommended practice for it within D community? Everyone thinks his way is the best. Thats

Re: indent style for D

2012-01-29 Thread Denis Shelomovskij
30.01.2012 0:42, Walter Bright пишет: On 1/29/2012 6:17 AM, bearophile wrote: D2 style guide should *require* D2 to be edited using a mono-spaced font, and the D2 front-end should enforce this with a -ms compiler switch. What? How could the compiler possibly know what font was used in your

Re: indent style for D

2012-01-29 Thread Mantis
29.01.2012 22:42, Walter Bright пишет: On 1/29/2012 6:17 AM, bearophile wrote: D2 style guide should *require* D2 to be edited using a mono-spaced font, and the D2 front-end should enforce this with a -ms compiler switch. What? How could the compiler possibly know what font was used in your

Re: indent style for D

2012-01-29 Thread Denis Shelomovskij
30.01.2012 0:53, Walter Bright пишет: On 1/29/2012 10:53 AM, Denis Shelomovskij wrote: No, it isn't. Spaces aren't comfortable to use in existed editors. Right, and I use tabs in my editor. I also run all files through the tools: detab to convert my tabs to spaces ... Works like a champ.

Re: indent style for D

2012-01-29 Thread Marco Leise
Am 29.01.2012, 21:20 Uhr, schrieb Timon Gehr timon.g...@gmx.ch: On 01/29/2012 08:26 PM, Marco Leise wrote: Am 29.01.2012, 16:23 Uhr, schrieb Trass3r u...@known.com: Am I mistaken? If no, am I missing some major spaces advantages? If no, lets use tabs. Perhaps, there is no tool that will

Re: indent style for D

2012-01-29 Thread Marco Leise
Am 29.01.2012, 20:32 Uhr, schrieb Derek ddparn...@bigpond.com: On Mon, 30 Jan 2012 01:04:43 +1100, Denis Shelomovskij verylonglogin@gmail.com wrote: * Such tab using shows respect to a programmer allowing him to configure tab size as he prefer. This works ok for editors, but I can't

Re: indent style for D

2012-01-29 Thread H. S. Teoh
On Sun, Jan 29, 2012 at 10:47:55PM +0400, Denis Shelomovskij wrote: 29.01.2012 22:07, Stewart Gordon пишет: It is. But mishmashing tab and space indentation causes far worse conflict. Iain - I take it you meant that mishmashing, combined with users having different tab size settings, causes

Re: indent style for D

2012-01-29 Thread H. S. Teoh
On Sun, Jan 29, 2012 at 05:33:39PM +, Russel Winder wrote: On Sun, 2012-01-29 at 09:17 -0500, bearophile wrote: [...] D2 style guide should *require* D2 to be edited using a mono-spaced font, and the D2 front-end should enforce this with a -ms compiler switch. Surely this is a level

Re: indent style for D

2012-01-29 Thread Jonathan M Davis
On Sunday, January 29, 2012 14:27:29 H. S. Teoh wrote: On Sun, Jan 29, 2012 at 05:33:39PM +, Russel Winder wrote: On Sun, 2012-01-29 at 09:17 -0500, bearophile wrote: [...] D2 style guide should *require* D2 to be edited using a mono-spaced font, and the D2 front-end should enforce

Re: indent style for D

2012-01-29 Thread Kagamin
On Sunday, 29 January 2012 at 20:53:51 UTC, Walter Bright wrote: tolf AFAIK, only windows notepad can't handle lf nowadays. That's it?

Re: indent style for D

2012-01-29 Thread bearophile
Walter: What? How could the compiler possibly know what font was used in your editor? Sorry Walter, this time I wasn't serious :-) Bye, bearophile

Re: indent style for D

2012-01-29 Thread Kagamin
On Sunday, 29 January 2012 at 22:25:57 UTC, H. S. Teoh wrote: *Text* is easier to read with proportional fonts. Code is not the same as text. Tried many monospaced fonts, none is more readable than verdana.

Re: indent style for D

2012-01-29 Thread H. S. Teoh
On Sun, Jan 29, 2012 at 12:36:18PM +0100, Trass3r wrote: http://www.d-programming-language.org/dstyle.html in regard to indent-style, can someone shed some light what is recommended practice for it within D community? Everyone thinks his way is the best. You know, I'm starting to take

Re: indent style for D

2012-01-29 Thread Iain Buclaw
On 29 January 2012 14:17, bearophile bearophileh...@lycos.com wrote: Denis Shelomovskij: Am I mistaken? If no, am I missing some major spaces advantages? If no, lets use tabs. D2 style guide should *require* D2 to be edited using a mono-spaced font, and the D2 front-end should enforce this

Re: indent style for D

2012-01-29 Thread H. S. Teoh
On Sun, Jan 29, 2012 at 02:32:48PM -0800, Jonathan M Davis wrote: On Sunday, January 29, 2012 14:27:29 H. S. Teoh wrote: [...] I always code with tab stops set to 8 and line wrapping set to 80 columns. That's not going to work very well with D. You tend to get far too many levels of

Re: indent style for D

2012-01-29 Thread H. S. Teoh
On Sun, Jan 29, 2012 at 11:03:54PM +, Iain Buclaw wrote: [...] I think D should go even further than that and drop those horrid curly braces, handling all code blocks by indentation. [...] Yeah, that way D will have much less competition to succeed (only have to beat Python instead of

Re: indent style for D

2012-01-29 Thread bearophile
H. S. Teoh: You know, I'm starting to take seriously bearophile's (I think it was him?) half-joking proposal that all code must be written on a single line, It wasn't me. Bye, bearophile

Re: indent style for D

2012-01-29 Thread Matej Nanut
I like the look of 8-space indents, but I don't see how I could pull it off if I use object-oriented features. I use 8-space indents if I code C, and it seems to work really well. But when you have a class, and then maybe even an inner class, you practically start with 2 levels of indentation, and

Re: indent style for D

2012-01-29 Thread Iain Buclaw
On 29 January 2012 23:30, Matej Nanut matejna...@gmail.com wrote: I like the look of 8-space indents, but I don't see how I could pull it off if I use object-oriented features. I use 8-space indents if I code C, and it seems to work really well. But when you have a class, and then maybe even

Re: indent style for D

2012-01-29 Thread deadalnix
Le 30/01/2012 00:44, Iain Buclaw a écrit : On 29 January 2012 23:30, Matej Nanutmatejna...@gmail.com wrote: I like the look of 8-space indents, but I don't see how I could pull it off if I use object-oriented features. I use 8-space indents if I code C, and it seems to work really well. But

Re: indent style for D

2012-01-29 Thread Artur Skawina
On 01/30/12 00:03, Iain Buclaw wrote: On 29 January 2012 14:17, bearophile bearophileh...@lycos.com wrote: Denis Shelomovskij: Am I mistaken? If no, am I missing some major spaces advantages? If no, lets use tabs. D2 style guide should *require* D2 to be edited using a mono-spaced font,

Re: indent style for D

2012-01-29 Thread Jonathan M Davis
On Sunday, January 29, 2012 23:44:25 Iain Buclaw wrote: On 29 January 2012 23:30, Matej Nanut matejna...@gmail.com wrote: I like the look of 8-space indents, but I don't see how I could pull it off if I use object-oriented features. I use 8-space indents if I code C, and it seems to work

Re: indent style for D

2012-01-29 Thread Timon Gehr
More practical than requiring all source files to be saved without formatting: - Upon opening a file, the editor looks for a style sheet in the same directory. If there is no such style sheet, it automatically deduces the style from the code, falling back to the local preferences. - Then it

Re: indent style for D

2012-01-29 Thread Sean Cavanaugh
On 1/29/2012 5:03 PM, Iain Buclaw wrote: On 29 January 2012 14:17, bearophilebearophileh...@lycos.com wrote: Denis Shelomovskij: Am I mistaken? If no, am I missing some major spaces advantages? If no, lets use tabs. D2 style guide should *require* D2 to be edited using a mono-spaced font,

Re: indent style for D

2012-01-29 Thread Stewart Gordon
On 30/01/2012 01:13, Sean Cavanaugh wrote: snip Clearly we need to redesign the language to use custom symbols that make sense, instead of the archaic typesetting symbols we use now and have a unique set of programmer symbols. It's already been tried (APL). OK, so maybe the that make sense

Re: indent style for D

2012-01-29 Thread Stewart Gordon
On 29/01/2012 19:26, Marco Leise wrote: snip Then again tabs for indentation only is a simple rule, that would have turned the tabs into spaces in this example - if editors supported it. But when alignment spaces begin at the beginning of the line, or immediately after the indentation tabs,

Re: indent style for D

2012-01-29 Thread Walter Bright
On 1/29/2012 2:41 PM, Kagamin wrote: On Sunday, 29 January 2012 at 20:53:51 UTC, Walter Bright wrote: tolf AFAIK, only windows notepad can't handle lf nowadays. That's it? So far, I've seen no issues with standardizing on LF line endings.

Re: indent style for D

2012-01-29 Thread Walter Bright
On 1/29/2012 2:44 PM, bearophile wrote: Walter: What? How could the compiler possibly know what font was used in your editor? Sorry Walter, this time I wasn't serious :-) All I can say is, I'm glad. That was a heluva WTF!

Re: indent style for D

2012-01-29 Thread H. S. Teoh
On Sun, Jan 29, 2012 at 07:13:14PM -0600, Sean Cavanaugh wrote: [...] There are huge swaths of unused unicode values, including a rather large chunk reserved for custom user-implementation. Clearly we need to redesign the language to use custom symbols that make sense, instead of the archaic

Re: indent style for D

2012-01-29 Thread H. S. Teoh
On Mon, Jan 30, 2012 at 01:57:43AM +0100, Timon Gehr wrote: More practical than requiring all source files to be saved without formatting: - Upon opening a file, the editor looks for a style sheet in the same directory. If there is no such style sheet, it automatically deduces the style

Re: indent style for D

2012-01-29 Thread Iain Buclaw
On 30 January 2012 03:27, H. S. Teoh hst...@quickfur.ath.cx wrote: On Mon, Jan 30, 2012 at 01:57:43AM +0100, Timon Gehr wrote: More practical than requiring all source files to be saved without formatting: - Upon opening a file, the editor looks for a style sheet in the same directory. If

Re: indent style for D

2012-01-29 Thread H. S. Teoh
On Mon, Jan 30, 2012 at 03:35:03AM +, Iain Buclaw wrote: On 30 January 2012 03:27, H. S. Teoh hst...@quickfur.ath.cx wrote: On Mon, Jan 30, 2012 at 01:57:43AM +0100, Timon Gehr wrote: [...] - And when saving, it automatically formats the source code in the deduced format. The

Re: indent style for D

2012-01-29 Thread Kagamin
On Monday, 30 January 2012 at 01:45:40 UTC, Walter Bright wrote: On 1/29/2012 2:41 PM, Kagamin wrote: On Sunday, 29 January 2012 at 20:53:51 UTC, Walter Bright wrote: tolf AFAIK, only windows notepad can't handle lf nowadays. That's it? So far, I've seen no issues with standardizing on LF

Re: indent style for D

2012-01-29 Thread Ali Çehreli
On 01/29/2012 02:27 PM, H. S. Teoh wrote: Why do so many programmers hanker for the 1960s and the necessity of monospace fonts, it seems irrational. I am irrational. ;-) Proudly, me too! I want to look at monospaced code with to tabs anywhere in it; and since I like what came out of the