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
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
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
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.
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
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
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?
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
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
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;
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
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.
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
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
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
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
http://media.comicvine.com/uploads/6/67698/1595201-oh_look_its_this_thread_again_super.jpg
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
Personally, I've never understood how anyone can stand anything
other than Allman.
Totally agree.
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:
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
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
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.
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.
Stewart Gordon:
What do you mean by the D2 front-end?
It was one of my first attempts at humor :-)
Bye and sorry,
bearophile
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.
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
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
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
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,
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
Ever heard of any one having such a tool?
http://golang.org/cmd/gofmt/
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
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. )
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:
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
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.
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
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
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!
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
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
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
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
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
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?
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
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.
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
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
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
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
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.
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
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
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
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
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
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?
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
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.
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
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
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
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
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
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
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
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
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,
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
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
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,
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
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,
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.
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!
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
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
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
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
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
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
83 matches
Mail list logo