3 ms·
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
by codahale 17y ago
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.