Can a bug be by design? :)
In many cases, a bug by design is a question of trade-offs. In this case, stricter rules for the parser might mean more syntax for the programmer.
if condition
x = true
end
puts "hello" if x
without initializing x to false before the conditional.