std.parallelism: Request for Review

dsimcha dsimcha at yahoo.com
Sat Feb 26 15:16:28 PST 2011


On 2/26/2011 6:08 PM, Andrej Mitrovic wrote:
> The example code is quite simple to digest. The makeAngel name is funny. :p
>
> I wonder how this compares to other languages.
>
> Should the return values "Task!(run,TypeTuple!(F,Args))" and
> "Task!(run,TypeTuple!(F,Args))*" be exposed like that? I'd maybe vote
> for auto on this one, if possible. Although auto does hide what it
> returns..

Yeah, this was a somewhat difficult choice.  In the end I decided that 
this detail is fairly unlikely to change and the clarity of making 
what's really going on transparent outweighs the fairly mild exposure of 
implementation details that are unlikely to change.  The only detail 
being exposed is that I use an adapter function to make callable objects 
work with the same infrastructure as aliases.


More information about the Digitalmars-d mailing list