L
Lyndon Samson
Yes, I'm a rube-noob
-- ok
if 1 == 1 &&
2 == 2
puts "TRUE"
end
-- syntax error
if 1 == 1
&& 2 == 2
puts "TRUE"
end
The second form is more convienient as you can easily comment out the
line, but it causes a syntax error.
I guess the interpreter need to know where the conditional finishes
and the statements begin?
-- ok
if 1 == 1 &&
2 == 2
puts "TRUE"
end
-- syntax error
if 1 == 1
&& 2 == 2
puts "TRUE"
end
The second form is more convienient as you can easily comment out the
line, but it causes a syntax error.
I guess the interpreter need to know where the conditional finishes
and the statements begin?