Ruby Symbols
"So really, what is a symbol? Simply, a symbol is something that you use to represent names and strings. What this boils down to is a way to efficiently have descriptive names while saving the space one would use to generate a string for each naming instance."
(Via If You Don't Get Symbols.)
This is a really informative post on Ruby and symbols. And there is enough of why's influence to make it an easy read. Bottom line, if you want to save some memory space use symbols especially as keys for hashes.
Tweetcomments powered by Disqus