News for hackers. Stuff that matters.
Re:Ruby Gets An Official Spec: Heading To Become An ISO Inte... by codahale on Wednesday December 09, 2009 @04:27AM (#985580)
I want to be excited about this, but there are big gaps in this spec.

For example, "blah"[0] should return an Object instance which represents "b". Could be a Fixnum. Could be a String. Could be a JPEG of some ASCII art representing the essence of "B." Any of those responses would be valid according to RubySpec.

What happens when you shadow a local variable with a block variable is unspecified, too. In 1.8.x, it overwrites the variable. In 1.9, it doesn't.

Even with a "RubySpec-compatible" implementation, you have no way of knowing if your application will run or not, which kind of defeats the purpose.

There are no comments on this comment yet.