David James wrote:
> On 12/13/05, brane@tigris.org <brane@tigris.org> wrote:
>
>> * tools/dev/stress.pl: "Use strict", add prototypes and prefix all die
>> messages with "stress.pl" to make them stand out from Subversion
>> errors.
>>
>
> Why add prototypes?
Because "use strict" requires them.
> In C, function prototypes enable compile-time type
> checking of function arguments, and are generally a good thing. Perl
> prototypes aren't designed to do that. Instead, the "$" prototype adds
> an implicit typecast in front of function arguments, converting arrays
> and hashes into scalar arguments. For example, the "$" prototype
> converts an array of letters ("a",b","c","d") into a count of the
> number of elements (e.g. "4"). Is this really what you want to do?
>
Yes. Why not?
-- Brane
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Dec 25 01:47:45 2005