Oddbean new post about | logout
 Also, curse you #Kotlin and #Rust for having different syntaxes for range values and confusing the hell out of me! :blobcatreeeeeee: 

In Kotlin, `x .. y` includes the upper bound and `x until y` doesn't.

In Rust, `x ..= y` includes the upper bound and `x .. y` doesn't.

Perfect, right? :blobCatGooglyTableFlip: 

For the record, I like Rust's range syntax much much better.

But damn if switching from Rust to Kotlin isn't going to introduce a TON of subtle bugs in my code! :blobcatverysad: 
 @3c745deb Kotlin also has this operator:

x ..< y