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

Distinguish between classes and namespaces #22

Open
dtao opened this issue Nov 6, 2013 · 0 comments
Open

Distinguish between classes and namespaces #22

dtao opened this issue Nov 6, 2013 · 0 comments

Comments

@dtao
Copy link
Owner

dtao commented Nov 6, 2013

This shouldn't be that hard, really.

If it's an object with a bunch of properties, it's a "namespace".

If it's a function, then it's class. Its direct properties are "static" members and its prototype's properties are "instance" members.

And if it doesn't belong to a namespace and it's got no members, then it's just a function.

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

1 participant