Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terminology: instance vs member vs non-static #463

Open
uvtc opened this issue May 25, 2020 · 2 comments
Open

terminology: instance vs member vs non-static #463

uvtc opened this issue May 25, 2020 · 2 comments

Comments

@uvtc
Copy link
Contributor

uvtc commented May 25, 2020

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?

@Simn
Copy link
Member

Simn commented May 26, 2020

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.

@uvtc
Copy link
Contributor Author

uvtc commented Jun 11, 2020

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants