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

V2 - make all parcel methods that just access data with no args as getters #266

Open
dxinteractive opened this issue Jan 3, 2020 · 0 comments

Comments

@dxinteractive
Copy link
Collaborator

dxinteractive commented Jan 3, 2020

Such as parcel.size() -> parcel.size, parcel.isFirst() -> parcel.isFirst etc.
Friendlier for destructuring, and the dev doesn't need to guess which things are access like this or this(). It does close off the possibility for non-breakingly accepting 1 or more args in future, but it's mature enough that I don't think that's an issue.

@dxinteractive dxinteractive changed the title V2 - make all parcel methods that just accedd data with no args as getters V2 - make all parcel methods that just access data with no args as getters Jan 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant