Kotlin is even more confusing than js :)

That is why you must read the documentation. Assuming that a construct in language X behaves the same in another language Y because it is written the same or similarly, will only get you into trouble and waste your time.

1 Like