6 ms·
In python you can just do 5 < x < 10
by manojlds 8y ago
In python you can just do 5 < x < 10
- wongarsu 8y agowhich is also the proper way you would read in any scientific paper, and very easy to read imho. 5 < x && x < 10 is the attempt to replicate this in other languages but falls a bit short
- saagarjha 8y ago> 5 < x && x < 10 is the attempt to replicate this in other languages but falls a bit short On the contrary, it's Python that added the shorthand, mathematical-looking notation because the longer "desugared" form wasn't great.
- kilburn 8y agoThat's not the contrary, it is exactly what the other comment said ;). "To fall short" == "to not be great"