Hacker News new | ask | show | jobs
by markov_twain 4861 days ago
This bit of ruby should take care of it

    HashMap = HashTable = Map = Table = Dictionary = Hash
And if you're feeling adventurous,

    Object.send :remove_const, :Hash
2 comments

Please never, ever do this
If doing this is such a bad idea then why is it so easy?
If doing:

  #define BEGIN {
  #define END }
were such a bad idea, then why is it so easy?
Maybe the language is poorly designed.
Or maybe the connection between being able to do something and it being a good idea to do something is just in your head.
In my experience, making obviously bad things difficult or impossible improves reliability. This idea certainly resides within my cranial cavity, but that doesn't necessarily make it wrong.
I approve of this. Don't listen to that other guy. This should be standard.

One addition though:

    Cocktionary = HashMap
"Dictionary" never really made sense.