Top stories

Buzz | Video | Top stories | My News


Ruby Symbols in 1.9—End of an Era (and a good thing, too)

Some recent changes in Ruby 1.9 point to the transition away from symbols being immediate objects. In particular, they lose their integer representation, and hence the methods Fixnum.id2name, Fixnum.to_sym, and Symbol.to_i have been removed. I'm expecting to see symbols migrate to the heap as 1.9 continues to evolve.

Tags : ruby programming

You will be redirected to Ruby Symbols in 1.9—End of an Era (and a good thing, too), in 20 seconds.




Register now!

Registered users don't wait for redirections. Register now for free and browse your favorite tags easilly and fast.