<div dir="ltr">On 1 June 2013 09:15, bearophile <span dir="ltr"><<a href="mailto:bearophileHUGS@lycos.com" target="_blank">bearophileHUGS@lycos.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Manu:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
On 1 June 2013 01:12, bearophile <<a href="mailto:bearophileHUGS@lycos.com" target="_blank">bearophileHUGS@lycos.com</a>> wrote:<br>
<br>
</div><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Manu:<br>
<br>
<br>
 Frankly, this is a textbook example of why STL is the spawn of satan. For<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
some reason people are TAUGHT that it's reasonable to write code like<br>
this.<br>
<br>
</blockquote>
<br>
There are many kinds of D code, not everything is a high performance<br>
ray-tracer or 3D game. So I'm sure there are many many situations where<br>
using the C++ STL is more than enough. As most tools, you need to know<br>
where and when to use them. So it's not a Satan-spawn :-)<br>
<br>
</blockquote>
<br></div></div><div class="im">
So why are we having this conversation at all then if faster isn't better in this instance?<br>
</div></blockquote>
<br>
Faster is better in this instance.<br>
What's wrong is your thinking that the STL as the spawn of Satan in general.<br></blockquote><div><br></div><div style>Ah, but that's because it is ;)</div><div style>Rule of thumb: never use STL in tight loops. problem solved (well, mostly)...</div>
</div></div></div>