improving the join function

Juanjo Alvarez fake at fakeemail.com
Wed Oct 13 16:30:42 PDT 2010


On Wed, 13 Oct 2010 16:42:35 -0400, "Steven Schveighoffer" 
<schveiguy at yahoo.com> wrote:
> Even though I consider myself a reasonable parser of function 
templates,  
> sometimes in std.algorithm, I'll stare at a function signature for 
about  
> 10 minutes trying to figure out whether I can do what I want, give 
up and  
> finally just try to compile it.




> I think what might help is spelling out the constraints somehow and 
 
> especially explaining how the alias parameters work.  They are some 
sort  
> of black magic I don't always understand :)

Glad to see I'm not the only one :) The asserts help a lot there; I 
understood that module better looking at them than with the 
signatures. Adding more (or just adding some where they're missing). 

The template constraints is something that could definitely kill more 
trees in future editions of TDPL.


More information about the Digitalmars-d mailing list