Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Ruby Symbols

Name: Anonymous 2010-07-04 15:32

What the poo is the difference between Ruby Symbols and Ruby Hashes? They seem to be the exact same thing with a different syntax to me.

a[:b] = c
a["b"] = c

Name: Anonymous 2010-07-04 21:24

Strings are interned whereas symbols are not.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List