From: Yukihiro Matsumoto Date: 2008-05-09T00:49:46+09:00 Subject: Re: Comparing String with Symbol Hi, In message "Re: Comparing String with Symbol" on Fri, 9 May 2008 00:43:19 +0900, Roger Pack writes: |I'd use either one except that [quoting Tim Harper] | |once a symbol is allocated, it is never garbage collected. | |This opens up a potential DOS attack: if you convert any user input to |symbols (via #to_sym or #intern), they could easily fill your symbol |space up and eat all of the available system memory. That's true but there are some other ways for potential DOS attack, which I don't disclose here. So you don't have to worry too much. Anyway, I have a plan to make Symbol garbage collected in 1.9 near future. matz.