Re: Naming convention for variable holding an eventual reference

David-Sarah Hopwood <david.hopwood-mRVxzIiVagSlV3Ge8JjJtnfLna9zW77MtUK59QYPAWc@public.gmane.org>
Newsgroups gmane.comp.lang.e.general
Message-ID <[email protected]>
Tyler Close wrote:
> AFAIK, there's no existing meaning for, or prohibition against, the
> use of the character 'z' in variable names. The character sequence
> "z." also still looks vaguely operator like, as "_." did.

I'd prefer 'Z' to 'z' (since there are words that end in 'z'), but
neither look very mnemonic to me.

> General meanings for the character include:
>     - compression
>     - <http://en.wikipedia.org/wiki/Z_notation>
>     - In Shakespeare's King Lear, Z is used as an insult. A character
> is called "Thou whoreson zed! Thou unnecessary letter!"
>     - Zoro's mark
>     - third axis in geometry
>     - see also <http://en.wikipedia.org/wiki/Z_%28disambiguation%29>
> 
> Alternatively, I could just bet against Caja and use the '_'
> convention for ADsafe, Javascript, Java and hope the Caja convention
> is a localized peculiarity.

Jacaranda (the spec for which has been coming on by leaps and bounds
recently) also needs a convention for marking private variables. If it
were not for Caja, I'd definitely choose leading '_' (which appears to
be by far the more common convention "out on the web", internal Google
conventions notwithstanding), but I don't want to be gratuitously
inconsistent with Caja.


PS. thanks for posting something about this; I intended to but other
things came up.

-- 
David-Sarah Hopwood
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.