From: fva <fv...@ts...> - 2003-02-26 09:58:23
|
John Max Skaller wrote: > >> My general philosophy on labels is that they should only be used when >> there is a real good reason to use them. What a 'real good reason' >> is I'm still working on. > > > > Good reason (1) is obvious: there are a LOT of arguments. > > Good reason (2) might be: there are several arguments of the same > > type and no natural order the programmer might guess at, or, > the chosen order differs from the C function it is wrapping. > > Good reason (3) is related to both: there are many arguments > and some are optional (so labels are necessary to invoke > the defaults). > > Another less good reason is: there are enough arguments > and lack of natural ordering, and the client is > likely to want to curry the function with subsets > of the arguments, perhaps multiple times. All seem to me good enough reasons. Shall we push it as a recommendation for contributions? But remember that some Standardlib functions come in two guises now: labelled and unlabelled. Regards. Fran Valverde |