Action script coding standards

I am a very good java script developer, but new to flash. I started to learn the action of the script. I read code snippets in many places. I found variable names starting with m_Variable_Name or _Variable_name. What does this mean when it starts with m_ or _? Can anyone talk about the coding standard?

Code example:

public class Person implements IPerson { private var m_name:String; public function get name():String { return m_name; } public function set name(value:String):void { m_name = value; } } 
+4
source share
3 answers

Here are the Adobe Coding Conventions .

Some people use m_ or _ to prefix member variables to distinguish them from local variables.

+11
source

prefixes m_ is used as a prefix for member variables.

+3
source

Prefix variable names are not a requirement, but rather a naming convention that you can use.

+3
source

Source: https://habr.com/ru/post/1399759/


All Articles