News for hackers. Stuff that matters.
Re:TOML, Tom's Own Markup Language by markov_twain on Saturday February 23, 2013 @11:03PM (#5272746)
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
Re:TOML, Tom's Own Markup Language by agscala on Sunday February 24, 2013 @12:41AM (#5273028)
Please never, ever do this
Re:TOML, Tom's Own Markup Language by DanWaterworth on Monday February 25, 2013 @12:36AM (#5277485)
If doing this is such a bad idea then why is it so easy?
Re:TOML, Tom's Own Markup Language by jlgreco on Monday February 25, 2013 @02:01AM (#5277700)
If doing:

  #define BEGIN {
  #define END }
were such a bad idea, then why is it so easy?
Re:TOML, Tom's Own Markup Language by DanWaterworth on Monday February 25, 2013 @03:01AM (#5277833)
Maybe the language is poorly designed.
Re:TOML, Tom's Own Markup Language by jlgreco on Monday February 25, 2013 @03:08AM (#5277853)
Or maybe the connection between being able to do something and it being a good idea to do something is just in your head.
Re:TOML, Tom's Own Markup Language by DanWaterworth on Monday February 25, 2013 @03:21AM (#5277890)
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.
Re:TOML, Tom's Own Markup Language by jlgreco on Monday February 25, 2013 @03:51AM (#5277971)
How could:

  HashMap = HashTable = Map = Table = Dictionary = Hash
possibly not qualify as "obviously bad"? The only reason you've offered up is because it is easy...
Re:TOML, Tom's Own Markup Language by DanWaterworth on Monday February 25, 2013 @04:19AM (#5278023)
I think this is fine. The obviously bad part is being able to remove/change constants, especially as these changes are global.
Re:TOML, Tom's Own Markup Language by agscala on Monday February 25, 2013 @03:06PM (#5281404)
The obviously bad part is that you pollute the global namespace for no reason other than laziness. When someone comes across code that uses a "Table" object interchangeably with "Dictionary" and "Hash", then he's going to have to look through the source code to find this bizarre line only to find out that you renamed a built-in container for no good reason.
Re:TOML, Tom's Own Markup Language by DanWaterworth on Monday February 25, 2013 @03:57PM (#5281741)
Yes, I suppose that's also true.
Re:TOML, Tom's Own Markup Language by knewter on Sunday February 24, 2013 @02:32AM (#5273277)
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.