My argument against this is just that these synchronization primitives more or less go completely against the paradigm that std.concurrency encourages. It just seems very awkward.<div><br></div><div>Andrei, do you have any input on this?</div>
<div><br></div><div>Regards,</div><div>Alex<br><br><div class="gmail_quote">On Tue, May 1, 2012 at 6:42 PM, Sean Kelly <span dir="ltr"><<a href="mailto:sean@invisibleduck.org" target="_blank">sean@invisibleduck.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think it was the suggestion that std.concurrency was to be the only import necessary for all things related to concurrency.  core.thread was left out because spawn() was supposed to be used instead.  I'd be fine with making the imports private though.<br>

<div class="HOEnZb"><div class="h5"><br>
On Apr 26, 2012, at 1:21 PM, Alex Rønne Petersen wrote:<br>
<br>
> I just looked over the concurrency chapter and couldn't find any mention of this.<br>
><br>
> Regards,<br>
> Alex<br>
><br>
> On Thu, Apr 26, 2012 at 8:51 PM, Sean Kelly <<a href="mailto:sean@invisibleduck.org">sean@invisibleduck.org</a>> wrote:<br>
> On Apr 25, 2012, at 5:47 PM, Alex Rønne Petersen wrote:<br>
><br>
> > Hi,<br>
> ><br>
> > I just noticed that std.concurrency public imports more or less all of<br>
> > the synchronization modules from druntime. This caused a whole bunch<br>
> > of name conflicts in my code. Is this really needed? The average code<br>
> > written with std.concurrency is not going to need *any* of these<br>
> > primitives - I mean, that's the entire idea. In my case, I'm doing<br>
> > very low-level hackery/abuse inside a garbage collector<br>
> > implementation, so that doesn't really count as normal usage.<br>
> ><br>
> > I know it would be a breaking change, but could we please get rid of<br>
> > those public imports? I honestly doubt anyone's relying on these, and<br>
> > they're frankly a pain in the ass.<br>
> ><br>
> > (Also, the core.thread import is private, but these are public - wat?)<br>
><br>
><br>
> I think it's like this because TDPL stated it works this way.  I'd have to re-read the chapter to be sure though.<br>
> _______________________________________________<br>
> phobos mailing list<br>
> <a href="mailto:phobos@puremagic.com">phobos@puremagic.com</a><br>
> <a href="http://lists.puremagic.com/mailman/listinfo/phobos" target="_blank">http://lists.puremagic.com/mailman/listinfo/phobos</a><br>
><br>
> _______________________________________________<br>
> phobos mailing list<br>
> <a href="mailto:phobos@puremagic.com">phobos@puremagic.com</a><br>
> <a href="http://lists.puremagic.com/mailman/listinfo/phobos" target="_blank">http://lists.puremagic.com/mailman/listinfo/phobos</a><br>
<br>
_______________________________________________<br>
phobos mailing list<br>
<a href="mailto:phobos@puremagic.com">phobos@puremagic.com</a><br>
<a href="http://lists.puremagic.com/mailman/listinfo/phobos" target="_blank">http://lists.puremagic.com/mailman/listinfo/phobos</a><br>
</div></div></blockquote></div><br></div>