More Suckiness

It appears, unfortunately, that Ruby Sucks. The example given:

x = mylist[N] || "N not present in mylist"

Is just the kind of thing I hated so much about Perl. The last thing you need is for your common idioms to be inprecise. The above || clause fires if mylist doesn’t have item N or if the value of mylist[N] is nil.

This is just the kind of lurking imprecision that causes stupid bugs. And stupid bigs like this leak out, and are very, very difficult to find in a large system. This is really poor design.

Of course, this may be quite sucky, but nothing sucks as much as PHP.

0 Responses to “More Suckiness”


Comments are currently closed.