Closed
Description
Design: RawVec and RawHashMap
This issue tracks design decisions around RawVec
and RawHashMap
implementations.
Problem
The current storage::Vec
and storage::HashMap
are very different from their counterparts (dynarray
and mapping
) in Solidity. They are targeted for a higher level of abstraction and provide more guarantees to the user.
The Solidity types are bare-metal, provide nearly no guarantees to the user and are targeted more towards efficiency and performance. Even though the Solidity types are arguably less secure and should be avoided for those reasons to write smart contracts in general, they might still be of some use for very experienced smart contract writers.