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 more Rust-like APIs to storage-plus Map #9

Open
ethanfrey opened this issue Oct 13, 2021 · 0 comments
Open

Add more Rust-like APIs to storage-plus Map #9

ethanfrey opened this issue Oct 13, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@ethanfrey
Copy link
Member

Map is essentially BTreeMap, but it needs Storage as an argument, and it may return error.

We could use more similar naming (insert, get rather than save and load).
I would not change existing APIs, but rather add some other methods and see if they are easier for end users. Possibly deprecate the current ones in the future.

I have a few reservations as I think there are some subtle differences that may be more annoying if you have a name you recognise you expect it to behave the same. Let's try an see.

@uint uint transferred this issue from CosmWasm/cw-plus Oct 17, 2022
@uint uint added the enhancement New feature or request label Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants