On 4/24/07, Yakov Lerner <[EMAIL PROTECTED]> wrote:

Besides C and descentants, no other language treats function parameters
as local variables.

What am I missing?

*  You can assign to parameters in most languages.
*  You don't prefix parameters in some manner in most languages.
*  A parameter is shadowed by later declarations of variables with the
same name in most languages.

I actually like a:,l:,g:,b: etc prefixes. They are useful in practice
because in languages
like C++, people tend to invent project-specific suffixes and prefixes
to distinguish between method vars, local vars, etc.
Vim codifies this. I find this convenient.

I have never seen anyone having a separate prefix for method variables
and local variables.  Instance variables, static variables, global
variables, sure, for example, "m_", "s_", "g_".

"Incredibly nonstandard" ? Since when ALL programming languages
obey one and the same standard ? From forth to lisp to vb.net to perl ?
Where did you see common standard for all programing languages ?
This thing does not exist. There are families of related languages with
common features and spirit, yes, but where did you see "standard features"
that programming language must obey ? This is ridiculous statement.
There is no such thing.

Eh, that "incredibly nonstandard" refers to the nonstandard treatment
of parameters.

 nikolai

Reply via email to