-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Align StorageMap interface more with Rust's {Hash,BTree}Map #4839
Comments
Will you want to do this @apopiak? As discussed in Riot, this should be done in a timely manner. |
Yep, will take on. |
I'm sorry to do this now instead of earlier, but I noticed another discrepancy: |
Also it's not a huge deal, but you remove a |
I think this is fine, that is just something where we diverge from a default hashmap.
I would expect that |
ok
right, makes sense |
The interface of
StorageMap
mostly keeps to the interface of Rust'sHashMap
andBTreeMap
except that it renamescontains_key
toexists
.I think it would make sense to either rename the function to the Rust name (
contains_key
) or create an alias.The text was updated successfully, but these errors were encountered: