4 ms·
Ruby doesn't have neither semicolons nor whitespace syntax
Ruby doesn't have neither semicolons nor whitespace syntax
actually, the rules are the same as swift. newline is the end of a statement, multiple statements on the same line require a semicolon.
Ruby has both semicolon and newline statement termination.
> x = 1; y = 2; z = x + y
=> 3