Rename `Collection.Hash` to `Collection.HashMap`
iahung2 opened this issue · 2 comments
iahung2 commented
To match the naming convention of C# and Java.
Deleted user commented
I tried to insert Nil
and it failed to run with >>> Unable to resolve virtual method call <<<
. So, Objeck's Hash
is equivalent to Java's HashTable
. Should the new name be HashTable
instead of HashMap
?
https://www.geeksforgeeks.org/differences-between-hashmap-and-hashtable-in-java/
objeck commented
Thanks, this was fixed. the Hash
class calls an object's Hash(...)
method to obtain a semi-unique key. If the key value is Nil
, the runtime cannot call the object's virtual method.