AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
The Evolution of Variable Types
In cotlin, var i equals zero and implicitly we figured out that it's an int right based on how you're using it. But then there was also var i colon int equal Or colon int i equals zero,. You're like, wait a minute val versus var like why? It's so weird because everywhere else is var And then majority the time in cotlin you want it to be val.