You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Python, you can write two-ended comparison as 50 < x < 100, but in Rust this simple syntax doesn't work and you instead have to write 50 < x && x < 100. I think we should introduce the former syntax to Rust since it's more readable and concise. The implementation shouldn't be too hard since I imagine you could just tell the compiler that the former syntax is synonymous with the latter syntax.
The text was updated successfully, but these errors were encountered:
In Python, you can write two-ended comparison as
50 < x < 100
, but in Rust this simple syntax doesn't work and you instead have to write50 < x && x < 100
. I think we should introduce the former syntax to Rust since it's more readable and concise. The implementation shouldn't be too hard since I imagine you could just tell the compiler that the former syntax is synonymous with the latter syntax.The text was updated successfully, but these errors were encountered: