HaxeManual
HaxeManual copied to clipboard
terminology: instance vs member vs non-static
For consistency in the manual, which is the official term to use throughout: member method or instance method? (Or, is "method" shorthand for "member method"?)
Also, the manual says "non-static" in some places. Which is preferred, instance or non-static?
What we have at the moment:
- instance vs. static
- variable vs. function
- method = instance function
- field = variable + function
An exception are constructors which are somewhere between instance and static.
Another problem is that we have final
now which can't really be a variable... I think it would be common to use "field" for variable + final, but we already use it differently, so I'm not sure.
Should the manual consistently call them
- "instance fields, which are instance variables and methods", or
- "member fields, which are member variables and methods"?
And then, it sounds like occurrences of the term "non-static" in the text should probably be changed to either "instance" or "member", correct?
Also, and aside, I understand that Haxe has both:
- methods (either instance or static) as well as
- functions (local, and now/soon (as of 4.2) module-level).