[e-lang] Naming convention for variable holding an eventual reference

David-Sarah Hopwood david.hopwood at industrial-designers.co.uk
Thu May 15 22:39:16 CDT 2008


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


More information about the e-lang mailing list