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

Pages: 1-

Ruby considered shit

Name: Anonymous 2007-09-03 16:15 ID:exsQkhUq

In Ruby 0, "" and [] all evaluate to boolean true.

Name: Anonymous 2007-09-03 16:17 ID:Heaven

Actually that is a good thing. Not that I use Ruby.

Name: Anonymous 2007-09-03 16:18 ID:5PZSX9CL

Men.

Name: Anonymous 2007-09-03 16:19 ID:bkeUxIva

>>3
hehe

Name: Anonymous 2007-09-03 16:19 ID:bkeUxIva

"" considered true

Name: Anonymous 2007-09-03 16:24 ID:ogMLn53+

What next? Should "0" evaluate to false, too?

Name: Anonymous 2007-09-03 16:24 ID:Qv/hcTEm

In Scheme everything except #f evaluates to boolean true.

Name: Anonymous 2007-09-03 17:39 ID:bkeUxIva

>>7
In soviet scheme, functions are values!

Name: Anonymous 2007-09-03 17:47 ID:5PZSX9CL

Scheme is communism

Name: Anonymous 2007-09-03 17:48 ID:DZZSuMpj

>>7
Which is one of my minor complaints about the language. Not that I care much about this specific feature; in fact I didn't have a stance until a few months ago, when I realized most of the times the code I write is simpler if 0, "" and [] evaluate to false.

Name: Anonymous 2007-09-04 18:05 ID:Heaven

pre: [pre]test[/pre]
p: [p]test[/p]
code: test

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