Should ArrayMap::insert
return an error or panic?
#4
Labels
A-Design
Some design decision has to be made
ArrayMap::insert
return an error or panic?
#4
Depends on how likely it is that one runs out of capacity? I think it would be good to provide both a panicking and non-panicking method.
The problem is that
try_insert
seems to be used differently instd
/hashbrown
, so a different name is needed.The text was updated successfully, but these errors were encountered: