Thanks to visit codestin.com
Credit goes to github.com

Skip to content

getters and setters as functions, also without the get/set keywords #183

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

Merged
merged 1 commit into from
Feb 2, 2017

Conversation

DavidVujic
Copy link
Contributor

The "Use getters and setters" section describes that it is hard to enforce the pattern, because JavaScript don't have the public and private keywords. I think this is actually an issue with JavaScript classes. With functions, properties can easily be private.

Described in #180

@ryanmcdermott ryanmcdermott merged commit b82b63b into ryanmcdermott:master Feb 2, 2017
@ryanmcdermott
Copy link
Owner

Thanks David, this is a nice improvement! 🎉

@DavidVujic DavidVujic deleted the getters-setters branch February 4, 2017 20:14
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

Successfully merging this pull request may close these issues.

2 participants