> Karl Tomlinson <mailto:mozn...@karlt.net>
> July 7, 2015 at 12:55 AM
>
> I find the 'a' prefix useful to tell me that this variable has the
> value that was provided to the function.
> (I'm assuming that the prefix is used with this convention.)
>
> There's no additional safety enforced, but I find the single
> letter helps readability.
>
> For example, if I want to know where the value of a variable comes
> from, and it starts with 'a', then I know immediately that I can
> skip looking at that particular function in the call chain/graph
> and I need to look at the calling function(s).
>
> That advantage does not exist in a declaration that is not a
> definition; this is only helpful in the definition.
> _______________________________________________
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
> ------------------------------------------------------------------------
FWIW, as a tech writer that has to take all this stuff and make sense of
it in documentation, I dislike "aFoo" but I'm fine with "mFood" and such
to differentiate methods from properties from constants, etc.

-- 

Eric Shepherd
Senior Technical Writer
Mozilla <https://www.mozilla.org/>
Blog: http://www.bitstampede.com/
Twitter: http://twitter.com/sheppy
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to