Jeff Gilbert writes:

> we should have a good reason or
> two for making our choice. No such reason is detailed in the style guide.

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

Reply via email to