Skip to content


Subversion checkout URL

You can clone with
Download ZIP


`x <?= y` should return `x` when `x <= y` #178

copygirl opened this Issue · 4 comments

3 participants


(was x <?= y not the same as x = x <? y)

I'm not quite sure what exactly is going on here, but I expected these two to behave the same.


x gets the lower value in both cases. The compound version is compiled so that the assignment only happens when necessary (just like x ||= y compiles to x || (x = y) rather than x = x || y).

x = 0
y = Math.random! * 10 - 5
x <?= y

always returns y.

x = x <? y on the other hand only returns y when it's smaller than 0.


x <?= y will return y, but assigns x correctly.


Oh, the return value. Yup, that's a bug.

@satyr satyr closed this issue from a commit
@satyr fixed #178 7330542
@satyr satyr closed this in 7330542
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.