Hassaan
05/07/2022, 3:44 AMephemient
05/07/2022, 3:55 AMval
is not re-assignableInt
type conceptually, the compiler will represent it with a boxed Integer or primitive int as appropriate, automaticallyHassaan
05/07/2022, 3:59 AMephemient
05/07/2022, 3:59 AM<http://kotlin.Int|kotlin.Int>
is never a mutable box. on JVM, it is represented by either a primitive int
wherever possible, or an immutable boxed java.lang.Integer
where notInt
to be like other value types: they have no identity, so instances (and whether they're the same or not) aren't even part of the language modelHassaan
05/07/2022, 4:05 AM