General

Profile

sampd (Sam Davies)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

03/06/2015

11:20 PM Ruby Bug #10947: Multiline if statement returns unexpected value instead of raising a syntax error
Jeremy Evans wrote:
>
> ...
Ah I see, so Ruby interprets the newline as ;. Thanks, I'll watch out for this more carefully in future.
I guess this issue can be closed.
sampd (Sam Davies)
10:27 PM Ruby Bug #10947 (Rejected): Multiline if statement returns unexpected value instead of raising a syntax error
Here is an invalid multiline if statement
~~~ruby
if (false &&
false &&
false
true)
puts "I was expecting an exception but saw this message instead"
end
~~~
As far as I can tell this is and should never be in...
sampd (Sam Davies)

Also available in: Atom