<@UAV6BQPP1> i am pretty sure all functions on lin...
# eap
n
@Allan Wang i am pretty sure all functions on line classes are also inlined when possible, so specifying inline there seems redundant
a
The docs define it as calling length using a static method, so I figured it would be different from actually being inline
n
can val even be inlined ? not sure there.. f it can then yes it would be better
a
A val with a getter can be inlined
d
On the JVM, static calls are inlined anyway. There is no performance overhead. This is called premature optimization ­čÖé
a
A bit off topic, but does that mean that every extension function is inline, since they become static calls? Do static methods not contribute to method counts at all?
g
Static methods of course add method counts same as inline functions. You still need a way to call them from Java or using reflection. The only exclusion: inline functions annotated with
@InlineOnly
annotation which is internal and not available for you own code, only for stdlib
y
@Nikky no, functions on inline classes are not inlined by the kotlin compiler
­čÖĆ 1