One place where they would be useful is code generation. As replacement
tokens in template code, or in special variables that you shouldn't
manually change, instead change only by using code generator.
i deliberately don't. I'm old school and try to code to make it as clear
and quick as possible to read. because I come from a VB background, I try
make it look like pseudocode, as plain English as practically possible. In
fact my favourite for this is J.D Edwards "one World" 4GL language. Perl,
PHP, etc looks like crap - too cryptic. IMHO with the exception of "_" for
private vars there are no naming convention needs that require "$"
@Erki: thats an interesting use case hadn't considered that.
Well you CAN use any character / symbol you like if you use array-notation
to reference the variable:
Your blog software stripped part of my posting there. Basically after the
"variables" bit was square brackets containing - let's try this again -
!""£#chr(7)#$%^#. There's not much limitation in CF variable names these
days.
Transfer ORM uses $ in generated code.
Sigh... as Adam noted, your blog software strips brackets...
@Adam/Sean: I had forgot that you could use almost anything as a variable
name using that notation!
I use $ sign in a special variables that I define, like logout, mpsession
and resetApp. So the actual variables look like $$logout$$, $$mpsession$$
and $$resetApp$$, respectively.