|
There's not much difference between a = a + b and a += b
However, if one takes advantage of "nice long variable names," there is a much bigger difference between:
FirstQuarterCompanyTotal = FirstQuarterCompanyTotal + FirstQuarterDepartment and FirstQuarterCompanyTotal += FirstQuarterDepartment
Not having to type the long variable name twice saves time and, on average, half the typographical errors made when typing it twice.
Mel Rothman Mel Rothman, Inc.
Call me a dinosaur (and you probably will :-), and I certainly don't mean to rain on anyone's parade, but IMHO these are syntaxes which I will probably never use.
On the one hand, we're all grateful for the RPG enhancements that allow us to enter nice long variable names, and we're happy that we can now mix upper and lower case and give the shift key a workout, but somehow we can't abide the notion of having to type:
a = a + b
and instead are begging to be able to limit ourselves to
a += b
Personally, I don't see the point (won't be the first time ;-).
JMHO
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.