This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: How many parameters to provide?
- From: Jonathan Wakely <cow at compsoc dot man dot ac dot uk>
- To: Chris Jefferson <caj at cs dot york dot ac dot uk>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Wed, 9 Feb 2005 16:19:27 +0000
- Subject: Re: How many parameters to provide?
- References: <420A2350.1060901@cs.york.ac.uk>
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