There's no point in having modules reinvent the wheel everytime. <span style="font-size:13px;color:rgb(80,0,80);font-family:arial,sans-serif;background-color:rgb(255,255,255)">CircularBuffer is clearly usable in other contexts. </span><div>
<font color="#500050" face="arial, sans-serif"><br></font></div><div><font color="#500050" face="arial, sans-serif">Reusing such code makes sure bug fixes and efficiency gains are done once and for all and work across the board.<br>
</font><div><font color="#500050" face="arial, sans-serif"><br></font></div><div>>> I wanted to make at least one module that doesn't pull in 100% of everything in Phobos</div><div><br></div><div>That seems like a very artificial exercise leading to unnecessary contorsions.<br>
<br><div class="gmail_quote">On Tue, Jun 4, 2013 at 1:00 AM, Walter Bright <span dir="ltr"><<a href="mailto:newshound2@digitalmars.com" target="_blank">newshound2@digitalmars.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 6/3/2013 11:40 PM, Timothee Cour wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
D)<br>
CircularBuffer belongs somewhere else; maybe std.range or std.container<br>
</blockquote>
<br></div>
I have mixed feelings about that. If you'll notice, std.compress doesn't have any imports! I wanted to make at least one module that doesn't pull in 100% of everything in Phobos (one of my pet peeves).<br>
</blockquote></div><br></div></div>