Explore index
and index_assign
for StorageMap
and other dynamic storage types
#4437
Labels
lib: std
Standard library
#4331 and #4334 attempt to introduce
index
andindex_assign
toStoargeMap
andStorageVec
respectively. These methods are then called by the compiler when[]
is used to support syntax likestorage.map[a] = b
.As we're not sure how to go about supporting
[]
for arbitrary types just yet, I've closed those PRs. They do contain important code though for future reference, particularly code that de-sugars[]
to calls toindex
orindex_assign
.The text was updated successfully, but these errors were encountered: