<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 14 December 2013 03:10, Brian Rogoff <span dir="ltr"><<a href="mailto:brogoff@gmail.com" target="_blank">brogoff@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im">On Friday, 13 December 2013 at 16:40:13 UTC, Manu wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">
I'm just saying, if it's code to be compared against other languages, then<br>
it should conform to the general standards of the language.<br></div>
I've never seen D code use egyptian braces.<br>
</blockquote>
<br>
You've never read TDPL.<br></blockquote><div><br></div><div>Published material, optimised for print. Andrei admits this. He uses C braces in his code.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
.. or Ali Cehreli's D tutorial.<br></blockquote><div><br></div><div>Possibly following Andrei's lead, and possible consideration for print? </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
... or looked at the D Rosetta code examples</blockquote><div><br></div><div>No, not really. That's a bit sad. I'd make the same argument there if it's as you say though.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Certainly the vast majority of<br>
D code doesn't. I don't care which, but stick with one as a 'standard'. D<br>
has clearly chosen C braces,<br>
</blockquote>
<br></div>
D is not a sentient being and can't choose anything. Some group of D coders chose that brace placement and 8 space indentation. Others have chosen a style which favors less extravagant usage of screen or book page real estate.<div class="im">
<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
If you were going to publish some Java code using C braces, how would you feel about that?<br>
</blockquote>
<br></div>
Feel free!</blockquote><div><br></div><div>You're saying you wouldn't find it unconventional, and perhaps ammateur looking?</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
I acknowledge that Phobos has specified a style, but this isn't a Phobos submission.</blockquote><div><br></div><div>I take druntime and phobos as they are the largest and most widely used body of D code, along with many other projects I've run into that also follow that lead. I'm yet to encounter any exceptions.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I can read either (and more!) but I have noticed that what you're calling Java style is catching on across a number of languages with C inspired syntax. There are advantages to that.<br>
<br>
If you feel strongly about this you may prefer Nimrod, which removes the choice from you, like Python. There are advantages to that, too.</blockquote><div><br></div><div>I only feel strongly about not being ambivalent on the matter. When I write Java, I use egyptian braces, and then it looks like Java code. Most people seem to understand that that's an expectation in Java. When I write C code, I use C braces.</div>
<div>I think C became widely confused soon after university CS courses started teaching Java primarily, then you have inexperienced post-grads bring their Java habits into their C code.</div><div>If D deliberately commits to the 'university post-grad syndrome' principle that C has found itself in, then I find that to be sad.</div>
<div>However, clearly, since there's debate on this, D _has_ already inadvertently made that commitment. Oh well.<br></div></div></div></div>