79744069

Date: 2025-08-23 07:14:44
Score: 2
Natty:
Report link

The difference comes from how Ruby parses line breaks and arguments inside parentheses
in your second case:
puts(x
-y)
Ruby doesnt see this as (x-y)
it actually parses it as (x,-y)
to get expected -1:
puts(x-y)
or
puts(x\
-y)
this isn't a bug just rubys parsing rule

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Suresh Reddy