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

Pages: 1-

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 15:34

oh nose sir yuo must bee mistaken. teh symbol are aewsome

Name: Anonymous 2010-07-04 15:43

Ruby Hashes
Swing and a miss

Name: Anonymous 2010-07-04 16:30

I wrote out the answer for you, and then right before I posted it I realized this is something you could have easily googled yourself. This is a bad thread.

Name: Anonymous 2010-07-04 18:36

>>3
Would've been hilarious were it in a thread about Java cache performance.

Name: Anonymous 2010-07-04 19:31

>>5
'implying that puns are hilarious

Name: Anonymous 2010-07-04 20:49

Thus, processor 1’s load from y occurs before processor 0’s store to y, implying r2 == 0.
implying r2 == 0.

Back to /b/, please.

Name: Anonymous 2010-07-04 21:24

Strings are interned whereas symbols are not.

Name: Anonymous 2010-07-04 22:00

>>8
( ≖n≖)

Name: Anonymous 2010-12-06 0:30

>>7
Fuck off, ``faggot''.

Name: Anonymous 2011-02-04 16:43

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