Re: Naming convention for variable holding an eventual reference

Sandro Magi <[email protected]>
Newsgroups gmane.comp.lang.e.general
Message-ID <[email protected]>
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
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.