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

Sandro Magi naasking at higherlogics.com
Fri May 16 16:26:08 CDT 2008


David-Sarah Hopwood wrote:
>> Yes, although you should be looking at the spec *as well as* testing :-)
>> <http://www.ecma-international.org/publications/standards/Ecma-262.htm>

Ah, but checking specs is not productive when one is trying to go to 
bed. :-)

> However,
>   - ideally we want a convention that can be used across several languages,
>     including E, Java/Joe-E, Emily, etc. as well as subsets of Javascript.
>     Most languages, following the Unicode identifier recommendations (or
>     something more restrictive), do not allow '$' after the first character.
> 
>   - in Javascript, using just '$' as the name of the "eventual operator"
>     conflicts with a convention used in Prototype and several other libraries
>     for getting DOM nodes.

_ seems like the only truly cross-language non-alphanumeric identifier.

Sandro


More information about the e-lang mailing list