John_H_Bergman
Tomato Guru
USA
198 Posts |
Posted - Jan 21 2004 : 12:40:52 AM
|
Most of my clients insist that internal variables are prefixed by "m_"... no surprise there, additionally, most of them want the standard variable name prefixes (str for string, i for int, etc)... occassionally, they also insist on special prefixes like arrlst for 'ArrayList' objects, and some even want their own objects prefixed -- like pp for 'PushPop'.. (don't ask).
How about adding the ability to define a list of mappings for variable type to prefix type, and then when variables are added to a class, they could be prefixed.
The list could also be enhanced to support the other prefix (like m_ for member, or c_ for const, ro_ for readonly, s_ for static, etc).
I could see VA update the code after the variable is typed in, and followed by an '=' or a ';' character.
then I could type:
public static string Name=
and when I typed the '=', the line would be adjusted to
public static readonly string s_strName=
-- or --
private int Count=
to
private int m_iCount=
-- or --
private ArrayList Items;
to
private ArrayList m_arrlstItems;
I could see this used to some degree in any of the IDEs.
Thoughts? |
John H. Bergman CTO SiliconZone
[email protected]
To Send email, remove the .online. |
|