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

Add methods to Pair #46

Open
ghost opened this issue Dec 11, 2017 · 2 comments
Open

Add methods to Pair #46

ghost opened this issue Dec 11, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Dec 11, 2017

This is kind of a question as well as a feature request.

I would like to see the methods key and value added to the Pair class to make it easy to retrieve the two from the object.

Do you think this is feasible? Should I log this on the main repo instead?

@ghost ghost changed the title Add methods to Pair? Add methods to Pair Dec 11, 2017
@rtheunissen
Copy link
Member

Definitely feasible. Methods or properties?

@ghost
Copy link
Author

ghost commented Dec 21, 2017

I would think methods are the best approach. From the perspective of the extension you would be able to implement read-only properties, but the polyfill wouldn't be able to do that, so for parity, a couple of getters would be great :)

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