objeck / objeck-lang

Objeck is a modern object-oriented programming language with functional features tailored for machine learning. It emphasizes expression, simplicity, portability, and scalability. The programming environment consists of a compiler, virtual machine, REPL shell, and command line debugger with IDE plugins.
https://objeck.org
Other
154 stars 11 forks source link

Rename `Collection.Hash` to `Collection.HashMap` #467

Closed ghost closed 7 months ago

ghost commented 7 months ago

To match the naming convention of C# and Java.

ghost commented 7 months ago

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 7 months ago

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.