General

Profile

Victor (Victor Daev)

Issues

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

Activity

02/14/2014

10:33 AM Ruby Bug #9519: Wrong multiline calculation
Heesob Park wrote:
> I think this issue is not a bug.
> ...
Is it ok? How about "the Principle of Least Surprise"?
Victor (Victor Daev)
10:27 AM Ruby Bug #9519: Wrong multiline calculation
p(100 - (1 + 2 + 3 + 4))
# => 90
# ok
p(100 - (1 +
2 +
3 +
4))
# => 90
# ok
p(100 - (1
+ 2
+ 3
+ 4))
# => 96
# BUT it should be 90
Victor (Victor Daev)
10:19 AM Ruby Bug #9519: Wrong multiline calculation
Ooops. How can I fix the layout? Victor (Victor Daev)
10:14 AM Ruby Bug #9519 (Rejected): Wrong multiline calculation
I have some script with a trouble.
p(100 - (1 + 2 + 3 + 4))
# => 90
# ok
p(100 - (1 +
2 +
3 +
4))
# => 90
# ok
p(100 - (1
+ 2
+ 3
+ 4))
# => 96
# BUT it should be 90
If I run the script I will get
$...
Victor (Victor Daev)

Also available in: Atom