What's the rationale behind the stylistic choice of naming some member vars using UpperCamelCase, e.g. this.TestResults? It seems like an unusual decision, since UpperCamelCase is usually reserved for classes/packages/namespaces. I'd have gone with lowerCamelCase, but perhaps there's a pattern I haven't caught on to.
Also, a heads-up: for the new Test.Builder.TestResult class, I intend to use get/set accessors everywhere. Public member vars suck. See below.
/usr/www/live/htdocs/junk/Test.Simple/ $ ack actual_ok doc/pod/Test/Builder.pod 479: actual_ok: did it literally say 'ok'? 493:"actual_ok" is a reflection of whether or not the test literally printed "ok" 523:and actual_ok is left C<null>. 530: actual_ok: 0, // in absolute terms, it failed
> What's the rationale behind the stylistic choice of naming some > member vars using UpperCamelCase, e.g. this.TestResults? It seems > like an unusual decision, since UpperCamelCase is usually reserved > for classes/packages/namespaces. I'd have gone with lowerCamelCase, > but perhaps there's a pattern I haven't caught on to.
IIRC, it was to highlight it as special. It's not really designed for user by end users. But it doesn't really matter.
> Also, a heads-up: for the new Test.Builder.TestResult class, I intend > to use get/set accessors everywhere. Public member vars suck. See > below.
:-) For some reason, they bother me less in JavaScript. Probably because you access them in much the same was as methods (with a dot), and because you can use = to assign to them, which I always liked. But of course, as soon as you need some sort of validation, you need to write a method, and then they should all be methods, for the sake of consistency.