From: Kaye Ng Date: 2011-07-25T16:20:31+09:00 Subject: Please give simple example of when to use symbols I'm still a bit confused on whether to use strings or symbols in certain situations. They produce the same results, although strings take up more memory, which I'm not sure how or why exactly. current_situation = "good" puts "Everything is fine" if current_situation == "good" puts "PANIC!" if current_situation == "bad" "good" and "good" and "bad" (3 strings) take up memory. Why is that? Isn't the second "good" same as the first? When do you normally use a symbol instead of a string? Thanks guys! -- Posted via http://www.ruby-forum.com/.