<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 14 December 2013 02:12, Timon Gehr <span dir="ltr"><<a href="mailto:timon.gehr@gmx.ch" target="_blank">timon.gehr@gmx.ch</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 12/13/2013 05:05 PM, Manu 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">
<br>
Is it idiomatic to use egyptian braces in D?<br>
</blockquote>
<br></div>
Brackets? Yes.</blockquote><div><br></div><div>[] is brackets, {} is braces.</div><div><br></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">
I've never seen D code written this way...<br>
looks like Java.<br>
</blockquote>
<br></div>
Not really, no.<br>
</blockquote></div><br></div><div class="gmail_extra">No, as in, people 'not really' write D code that way, or no as in, it doesn't look like java, except that it does, because only it and javascript have idiomatic egyptian braces... ;)</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">I'm just saying, if it's code to be compared against other languages, then it should conform to the general standards of the language.</div><div class="gmail_extra">
I've never seen D code use egyptian braces. Certainly the vast majority of D code doesn't. I don't care which, but stick with one as a 'standard'. D has clearly chosen C braces, not Java braces, all the standard libraries agree.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">If you were going to publish some Java code using C braces, how would you feel about that?</div></div>