This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How many parameters to provide?


On Wed, Feb 09, 2005 at 02:50:56PM +0000, Chris Jefferson wrote:

> I've been perusing the functional submission by Douglas Gregor, to 
> decide if I think generating from macros or a seperate program are 
> better (in paarticular, I was wondering how well a macro-style 
> implementation would debug.)
> 
> However, the point of this email is to ask about number of parameters. I 
> notice Douglas has provided the variable size templates up to size 20. 
> The standard requires only 10 (which is what tuple provides). I can see 
> the advantages of 10 and of 20, but I think for these various things it 
> would probably be best to have them all the same size, unless there is a 
> good reason not to. Any opinions on if it should be the minimum required 
> by the standard by default or some larger number?

IMHO doing /anything/ more than the absolute minimum would be nice.

20 seems like as good a number as any, as long as it wouldn't make it
twice as hard to debug / maintain as 10 parameters.

jon

-- 
"When I think of all the harm the Bible has done, I despair of ever 
 writing anything to equal it." 
	- Oscar Wilde


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]