On 01/06/2014 08:35 PM, Joshua Cranmer 🐧 wrote:
> And a '_' at the end of member names requires less typing than 'm' + capital 
> letter?

This started, and still largely is, an Ion convention.  Lots of existing code 
doesn't use it, and I haven't much worked on code that does.  But as I said, 
I'm not one of the SpiderMonkey hackers who strongly cares about prefixes or 
suffixes (although I think -Wshadow is worth using, somehow).  So mFoo versus 
foo_ is not significantly different to me.

But it does seem to me that mFoo *is* slightly more trouble than _ at end.  _ 
at end doesn't affect any of the rest of the name.  mFoo in contrast forces the 
first "real" letter to be capitalized, and often that's a floating capital in 
the middle of lowercase letters.  When typing mFoo, the "F" is a 
precision-strike capital letter.  Don't touch too early, don't touch too late, 
or you mistype.  With "_" you can sometimes get away holding it slightly long 
because it doesn't "bleed" into the rest of the identifier.

Jeff
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to