The Kotlin compiler is smart enough to optimize aw...
# javascript
s
The Kotlin compiler is smart enough to optimize away the object creation for
this in 'a'..'z' || this in 'A'..'Z' || this in '0'..'9'
in the JS compiler right?
🚫 2
t
CharRange
created every time 😞
Screenshot 2020-10-24 at 23.58.00.png
👀 1
s
oh - that’s disappointing. Forgot I could just check the JS.
Is that intended at some point?
I wish you guys didn’t have warnings suggesting to code like this when the compiler doesn’t optimize for it
1
👍 1
💯 1