Actions
Feature #3922
closedSyntax awkwardness
Feature #3922:
Syntax awkwardness
Description
=begin
[code]
1 + (2; 1) #=> 2
puts(1; 2) #=> syntax error
puts((1; 2)) # like: puts 2
puts (3)*2 #=> 6
puts(3)*2 #=> nil-error
puts (1; 2) #=> syntax error
puts (1; 2)*3 #=> syntax error
puts ((1; 2))*3 # like: puts 6
[/code]
IMO this is awkward behavior (but maybe it is intended). I think the same results can be achieved with a newline instead of ';'.
=end
Actions