Skip to content

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

Merged
ryanmcdermott merged 1 commit into
ryanmcdermott:masterfrom
DavidVujic:getters-setters
Feb 2, 2017
Merged

getters and setters as functions, also without the get/set keywords#183
ryanmcdermott merged 1 commit into
ryanmcdermott:masterfrom
DavidVujic:getters-setters

Conversation

@DavidVujic

Copy link
Copy Markdown
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
Copy Markdown
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