[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Drunk Driving redux (what was he thinking?)




On Tue, 29 Jun 1999, Vicki Brown wrote:

> Ah. Ah ha!  Thank you. I was wondering. It didn't seem to be anyone's
> initials which was all I could think of. This was not a convention I was
> shown in my brief exposure to C++.

It's very common in Windows code. Whether it's C or C++.

>     %aPhdFiles (well, it's an associative Array; shouldn't it be
> %aaPhdFiles? :)

I might have used 'h', for 'hash'. Better yet, I would have used '', for
"this ain't C++".

> I suppose there is a certain logic to such a naming convention, but it's
> sure not Perlish.  I could be convinced to go along with n, b, and maybe s.
> sz, as you say, is inappropriate here, and a is just plain silly.

Arguments about these naming conventions can get rather religious at
times, but I find that they can be a useful way (when used sparingly) of
dealing with the fact that some languages don't handle types very well. C
and C++, in particular. There's certainly no need for it in Perl, though;
the combination of context and the prefix character ($, @, %, etc.) always
makes things very clear for me.


==== Want to unsubscribe from Fun With Perl?
==== Well, if you insist... Send mail with body "unsubscribe" to
==== fwp-request@technofile.org